fbpx

Error in Example 1 that does not get mentioned.

More
10 months 1 week ago #1 by Jelle
I'm working on the tutorial:
www.xsharp.info/help/example-1-the-vo-explorer-examp.html

and arrived at this step:

"This DLL is located in the Redist folder of your VO installation. Simply copy the “Cato3spl.dll” file from your VO Redist folder to the output folder as well as the MSVCRT.DLL and try again.
You can also add the DLLs to your project (Add Existing Item, and point to the DLLs in the Redist folder). This will copy them to the project folder. Then set the build action for the 2 DLLs to None and the “Copy to Output Directory” property to “Preserve Newest”. When you now build your app the DLL will be copied to the right folder."

I have done this succesfully with the two DLL's. They get succesfully copied to the Debug folder and the previous error has been resolved. Of course i rebuilded the whole application and i tried both the first method: to just add it. And the second method: Add Existing Item.

However, according the tutorial, it should work now and it does not, I get the following error:



Here is the same error in Visual Studio:

Attachments:

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

More
10 months 1 week ago #2 by Chris Pyrgas
Replied by Chris Pyrgas on topic Error in Example 1 that does not get mentioned.
Hi Jelle,

Hmm, that's a very strange error to be happening! What is the version of the runtime dlls that you are using? Can you please zip the whole solution folder and send it to me or attach it in a message here to have a look?

Chris

XSharp Development Team
chris(at)xsharp.eu

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

More
10 months 1 week ago - 10 months 1 week ago #3 by Jelle
Thanks for replying, you mean the Vulcan DLL's, right? 4.0.401.0 they say.
Here is the complete Solution:

File Attachment:

File Name: Explorer.zip
File Size:1,462 KB


Also, as a side note, I followed the other 3 examples after this and they all worked great!
Attachments:
Last edit: 10 months 1 week ago by Jelle.

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

More
10 months 1 week ago #4 by Chris Pyrgas
Replied by Chris Pyrgas on topic Error in Example 1 that does not get mentioned.
Hi Jelle,

Thank you very much for sending the sample, turns out it is a problem with the way X# handles missing constructors. This feature was implemented after those help file topics were written and seems in some cases it does not work well.

We will look into it and fix this, in the meantime you can workaround the problem by manually adding the missing constructors. So just copy this code inside the CustomerListView and CustomerTreeView classes and it will work fine:
CONSTRUCTOR(oOwner , xID , oPoint , oDimension , kStyle)
	SUPER(oOwner , xID , oPoint , oDimension , kStyle)
RETURN

hth,
Chris

XSharp Development Team
chris(at)xsharp.eu
The following user(s) said Thank You: Jelle

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

More
10 months 5 days ago #5 by Jelle
Thanks! This worked!

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