I've gotten a succesful compile on my Windows machine, using Visual Studio Community Edition (same as alexusvm is using)
I tried running this compiled program with Mono, but that didn't work. There are no clear errors, so I gave up on that idea.
I'm now trying to compile with Mono on Linux.
To do this I am downgrading the program to Visual Basic 2005 (the last Basic supported by Mono). Like I posted before, this mostly means I cannot use so-called Object Initialisers: "New Object With {.Property = value}"
I've fixed about 400 of them so far, 320 to go!
(Big Hurray for regex find-replace!)
Thankfully, the "normal" With-syntax works, so I'm doing a lot of:
Code: Select all
Dim _stStage As New StationTree_Stage With {.Name = _stage_group_name, .LabelStatusWidth = LabelStatus.Width, .Padding = New Padding(10, 0, 0, 0), .IsNPCStation = IsNPCStation, .Stage = _stage, .Dock = DockStyle.Top}
vvvvvvv becomes vvvvvvv
Dim _stStage As New StationTree_Stage
With _stStage
.Name = _stage_group_name
.LabelStatusWidth = LabelStatus.Width
.Padding = New Padding(10, 0, 0, 0)
.IsNPCStation = IsNPCStation
.Stage = _stage
.Dock = DockStyle.Top
End With
Code: Select all
Public Class user_balance_item
.....
Public Sub New(_ware As xr_ware_production, _time As Long)
Ware = _ware
Time = _time
End Sub
Code: Select all
Dim _ubi As user_balance_item = New user_balance_item(someWare, someTime)