Page 2 of 3
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 12:43 pm
by nkristensen
Hi Johan,
Yes, references in the project to the assemblies from GAC. '
Regards,
Niels
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 12:58 pm
by wriedmann
hi Niels,
strange..... I'm using XIDE to compile, and I have not done anything strange.
- bServer_Compiler_Properties.png (28.08 KiB) Viewed 1423 times
- bServer_References.png (28.53 KiB) Viewed 1423 times
Do you are usings Visual Studio or XIDE?
Wolfgang
P.S. I'm using self compiled versions of the VO class libraries, therefore the "strange" name
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 12:59 pm
by nkristensen
Thanks Wolfgang,
I am also using XIDE, but I have no complier options set. I will try your settings.
Regards,
Niels
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:14 pm
by nkristensen
Wolfgang,
Working now using the same compiler options as you.
Thank you very much to you and Johan.
Regards,
Niels
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:23 pm
by wriedmann
Hi Niels,
You're welcome!
If you find other difficulties, please drop a note here. I'll try to answer and to add it also to the X# Documentation Project,
Wolfgang
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:25 pm
by lumberjack
Hi Niels,
nkristensen wrote:
Thank you very much to you and Johan.
You welcome, but the honor goes to Wolfgang. Glad you got it sorted out.
Regards,
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:45 pm
by nkristensen
Sorry to trouble again, but now I am getting:
error XS0426: The type name 'Functions' does not exist in the type 'bBrowser' 6,46 bptrCellGroupMove.prg bBrowser
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:49 pm
by wriedmann
Hi Niels,
strange....do you have applied the same compiler options also to the bBrowser library?
Wolfgang
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:49 pm
by Chris
Guys, glad you have all resolved this, without help from us! In general, when you port code from vulcan to X#, you should be using the exact same compiler options in X# that also the vulcan app was using, we have intentionally used the exact same names in the properties pages of VS/XIDE, in order to make this as easy as possible.
Specifically about the "Clipper/Strict" error, the issue is that when you have a method defined as
METHOD Close() // no params or explicit return type
then the compiler does not know if it should be defined as a strongly typed method, or it is a VO-style calling convention method. Using the /vo5 (implicit CLIPPER calling convention) option, tells the compiler to treat such methods as CLIPPER, which is what the rest of the bBrowser code uses.
Chris
bBrowser.NET migration to X#
Posted: Sun Jun 10, 2018 1:53 pm
by Chris
Hi Niels,
nkristensen wrote:Sorry to trouble again, but now I am getting:
error XS0426: The type name 'Functions' does not exist in the type 'bBrowser' 6,46 bptrCellGroupMove.prg bBrowser
This is most probably due to a (one of the very few remaining) compiler problem, that you cannot have a class with the same name as the dll. Please check the options for this app, general page, what is the "Assembly Name" option set at? If it's bBrowser, then it will not work correctly, you will need to change it to something different, for example "bBrowserNet". I think the original value there as created by Joachim was "bTools.bBrowser".
Chris