Converting RightSLE and FabPaint

Public support forum for peer to peer support with related to the Visual Objects and Vulcan.NET products
Post Reply
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

Converting RightSLE and FabPaint

Post by leighproman »

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
User avatar
wriedmann
Posts: 3755
Joined: Mon Nov 02, 2015 5:07 pm
Location: Italy

Converting RightSLE and FabPaint

Post by wriedmann »

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
Wolfgang Riedmann
Meran, South Tyrol, Italy
wolfgang@riedmann.it
https://www.riedmann.it - https://docs.xsharp.it
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Converting RightSLE and FabPaint

Post by Chris »

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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
leighproman
Posts: 60
Joined: Tue Oct 11, 2016 8:56 pm
Location: UK

Converting RightSLE and FabPaint

Post by leighproman »

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
User avatar
Chris
Posts: 4898
Joined: Thu Oct 08, 2015 7:48 am
Location: Greece

Converting RightSLE and FabPaint

Post by Chris »

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
Chris Pyrgas

XSharp Development Team
chris(at)xsharp.eu
Post Reply