fbpx
× Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET

Need Help Porting Vulcan to X#

More
1 year 9 months ago #1 by Gary N Keefe
Need Help Porting Vulcan to X# was created by Gary N Keefe
Hi, I have a relativity small Vulcan app that I am having trouble porting to X#. I ran the porter and the xxx-XS.Sln file was successfully created. When I open the solution, VS 2015 doesn't display the Start button instead the Attach... button is displayed. I'm not sure how to proceed from here. Also, any form I click on doesn't get loaded by the form editor. Instead a message is displayed:
"To prevent possible data loss before loading the designer, the following errors must be resolved:" and "The designer could not be shown for this file because none of the classes within it can be designed." Followed by a bunch of Show Call Stack errors. Any ideas on what I'm doing wrong?

If it helps, I have attached the project.
Thanks,
Gary
Attachments:

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic Need Help Porting Vulcan to X#
Hi Gary,

I confirm the problem, I see the same thing here, too. The xporter must have done something wrong in converting the project, we will look closely into it and will get back to you asap!

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #3 by Gary N Keefe
Replied by Gary N Keefe on topic Need Help Porting Vulcan to X#
Hi Chris,
Not a make or break situation for me.
Thanks for looking into it.
Gary

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #4 by Chris Pyrgas
Replied by Chris Pyrgas on topic Need Help Porting Vulcan to X#
Hi Gary,

From what I see, the problem is that there's a platform identifier missing in the .xsproj file. But simply by loading and closing the solution, the project system of x# fixes this problem, so the next time you open the solution, building/starting the app will be enabled.

When building you will get 2 warnings (which get converted to errors), either disabling this warning (649) by entering its number in the "Project settings/Build/Suppress specific warnings" project options or setting "Warnings As Errors" to False will allow your code to compile and it will run as expected.

I still see the issue opening the form in the designer though. I don't know what is causing this, will check with Robert about it.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #5 by Gary N Keefe
Replied by Gary N Keefe on topic Need Help Porting Vulcan to X#
Hi Chris,

Any luck with the form editor issue?

Thanks,
Gary

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #6 by Robert van der Hulst
Replied by Robert van der Hulst on topic Need Help Porting Vulcan to X#
Gary,

Chris is NOT going to look into this himself.
Visual Studio is really not his thing.
Fabrice and I take care of that.
And I have not found the time to check this yet.
Was too busy with other obligations.
Hopefully tomorrow.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #7 by Gary N Keefe
Replied by Gary N Keefe on topic Need Help Porting Vulcan to X#
Hi Robert,

Using my scale interface program with X# is not a high priority item on my end. I was just experimenting. So, no hurries here.

Thanks,
Gary

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #8 by Chris Pyrgas
Replied by Chris Pyrgas on topic Need Help Porting Vulcan to X#
Robert,

You are right of course, but actually I did have a look :-)
Problem is the font assignment, looks like the codedom chokes on the System.Drawing.FontStyle.* part. Gary, removing the "font" lines for the designer.prg file will allow the form to load in the designer, but I admit this is not a good solution, so I'd suggest to wait for a fix for this.

Chris

XSharp Development Team
chris(at)xsharp.eu

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #9 by Robert van der Hulst
Replied by Robert van der Hulst on topic Need Help Porting Vulcan to X#
Gary,

W.r.t. the xporter: it looks like you have used an older version of the XPorter to convert the Vulcan project to X#. The Xporter.exe in the XSharp.Bin folder should convert everything without problems.
After converting the Vulcan project you should be able to compile and run.
I cannot test the code completely, since I do not have the scanner.

You will have to set 'warnings as errors' on the Build page for the project options to false, because there are 2 warnings for generated code.

I noticed that there was still an older version of XPorter in the downloads section on the website. I have removed that copy.

With regard to the form editor the following:
Your example exposed several problems in the code parser for windows forms:
- it fails when the form.prg or form.designer.prg has methods without parameters
- it fails for constructor parameters of type 'enumerator value' such as the font style
- your code uses font sizes in fractions. This fails on a machine with a decimal separator which is not a comma.
- and more

I am still struggling with the form that shows the pie gauge. The others are working fine now.
I will let you know when I have a solution.


Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #10 by Robert van der Hulst
Replied by Robert van der Hulst on topic Need Help Porting Vulcan to X#
Gary,

Now the Gauge also displays as in VO. There was a problem decoding inline assignments for local variables, such as there is in the generated code:
LOCAL aGaugeLabel2 := System.Windows.Forms.AGaugeLabel{} AS System.Windows.Forms.AGaugeLabel

I will probably create a new build before Cologne.
Please give us some time for testing.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

Please Log in or Create an account to join the conversation.

More
1 year 9 months ago #11 by Gary N Keefe
Replied by Gary N Keefe on topic Need Help Porting Vulcan to X#
Thanks

Please Log in or Create an account to join the conversation.