Hi
I've started looking at XSharp and the conversion of our VO28 applications.
Our VO28 applications use both RightSLE and FabPaint.
Have tried Xporting the latest download Vulcan versions of these tools but am running into similar problems with both.
Class definitions like:
CLASS wmBitmapFromDisk INHERIT Bitmap
Generate this error:
XS0246 The type or namespace name 'Bitmap' could not be found (are you missing a using directive or an assembly reference?)
And am also getting a couple of these:
XS1703 Multiple assemblies with equivalent identity have been imported: 'C:WindowsMicrosoft.NETFramework64v4.0.30319mscorlib.dll' and 'C:WindowsMicrosoft.NETFrameworkv2.0.50727mscorlib.dll'. Remove one of the duplicate references.
Any ideas on where to look?
Thanks
Leigh
Converting RightSLE and FabPaint
-
- Posts: 60
- Joined: Tue Oct 11, 2016 8:56 pm
- Location: UK
Converting RightSLE and FabPaint
Hi Leigh,
for the first I have to look, but the second seem to be a mixture between .NET 2 (or 3.5) and 4. Please look at the references of all your included libs - some of them seem to have a 2.0 reference.
Wolfgang
for the first I have to look, but the second seem to be a mixture between .NET 2 (or 3.5) and 4. Please look at the references of all your included libs - some of them seem to have a 2.0 reference.
Wolfgang
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
Converting RightSLE and FabPaint
Hi Leigh,
I suspect the libraries versions are a bit old, generated with an early ( <= 2.0) version of Vulcan.NET. Try removing all the references from your exported x# solution and add them again.
If you have vulcan installed in your machine, you should find the correct ones in <program files/vulcan folder>RedistAssembliesv4.0. Typically you will need to add references to VulcanRT.dll, VulcanRTFuncs.dll and VulcanVOSystemClasses.dll, VulcanVOWin32APILibrary.dll, VulcanVOGUIClasses.dll, VulcanVORDDClasses.dll.
You will also possibly need a reference to the System dll, you can do that from the ".Net" page in the Add reference dialog.
If you still get errors, you can zip and post the solutions either here or directly to me or Robert so we can have a close look.
Chris
I suspect the libraries versions are a bit old, generated with an early ( <= 2.0) version of Vulcan.NET. Try removing all the references from your exported x# solution and add them again.
If you have vulcan installed in your machine, you should find the correct ones in <program files/vulcan folder>RedistAssembliesv4.0. Typically you will need to add references to VulcanRT.dll, VulcanRTFuncs.dll and VulcanVOSystemClasses.dll, VulcanVOWin32APILibrary.dll, VulcanVOGUIClasses.dll, VulcanVORDDClasses.dll.
You will also possibly need a reference to the System dll, you can do that from the ".Net" page in the Add reference dialog.
If you still get errors, you can zip and post the solutions either here or directly to me or Robert so we can have a close look.
Chris
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu
-
- Posts: 60
- Joined: Tue Oct 11, 2016 8:56 pm
- Location: UK
Converting RightSLE and FabPaint
Thanks for the replies - am making some progress now.
Have added the references again and to get rid of the namespace errors I set 'Enable Implicit Namespace lookup' in the Language Properties section - is there something I should code to avoid having to set that?
Leigh
Have added the references again and to get rid of the namespace errors I set 'Enable Implicit Namespace lookup' in the Language Properties section - is there something I should code to avoid having to set that?
Leigh
Converting RightSLE and FabPaint
Hi Leigh,
The matter with this option is that in the SDK that comes with vulcan, the classes have been prefixed with the Vulcan.VO namespace, so for example DataWindow has become Vulcan.VO.DataWindow. So normally you would need to specify your class names with the full name (LOCAL oWin AS Vulcan.VO.DataWindow), or add a "USING Vulcan.VO" statement in the beginning of all your prg files. The option "Enable Implicit Namespace lookup" instructs the compiler to always do that for you implicitly, so you don't need to worry about it.
Chris
The matter with this option is that in the SDK that comes with vulcan, the classes have been prefixed with the Vulcan.VO namespace, so for example DataWindow has become Vulcan.VO.DataWindow. So normally you would need to specify your class names with the full name (LOCAL oWin AS Vulcan.VO.DataWindow), or add a "USING Vulcan.VO" statement in the beginning of all your prg files. The option "Enable Implicit Namespace lookup" instructs the compiler to always do that for you implicitly, so you don't need to worry about it.
Chris
Chris Pyrgas
XSharp Development Team
chris(at)xsharp.eu
XSharp Development Team
chris(at)xsharp.eu