fbpx
Welcome, Guest
Username: Password: Remember me
Visual Objects

Please use this forum to post questions about Visual Objects and Vulcan.NET
  • Page:
  • 1

TOPIC: Converting RightSLE and FabPaint

Converting RightSLE and FabPaint 1 year 8 months ago #2927

  leighproman's Avatar Topic Author leighproman Offline Posts: 21
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:\Windows\Microsoft.NET\Framework64\v4.0.30319\mscorlib.dll' and 'C:\Windows\Microsoft.NET\Framework\v2.0.50727\mscorlib.dll'. Remove one of the duplicate references.

Any ideas on where to look?

Thanks

Leigh

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

Converting RightSLE and FabPaint 1 year 8 months ago #2929

  wriedmann's Avatar wriedmann Offline Posts: 1567
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
This email address is being protected from spambots. You need JavaScript enabled to view it.
www.riedmann.it - docs.xsharp.it

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

Converting RightSLE and FabPaint 1 year 8 months ago #2933

  Chris's Avatar Chris Offline Posts: 1164
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>\Redist\Assemblies\v4.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
XSharp Development Team
chris(at)xsharp.eu

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

Converting RightSLE and FabPaint 1 year 8 months ago #2934

  leighproman's Avatar Topic Author leighproman Offline Posts: 21
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

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

Converting RightSLE and FabPaint 1 year 8 months ago #2937

  Chris's Avatar Chris Offline Posts: 1164
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
XSharp Development Team
chris(at)xsharp.eu

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

  • Page:
  • 1