fbpx

Error XS1061

More
1 year 7 months ago #1 by Jan Timmer
Error XS1061 was created by Jan Timmer
Hi all,

We started a couple of days ago with a conversion project from VO to X#. The customer has a class 'DBServerKL' that is inherited from DBServer.


Error XS1061 'DBServerKL' does not contain a definition for 'OrderDescend' and no extension method 'OrderDescend' accepting a first argument of type 'DBServerKL' could be found (are you missing a using directive or an assembly reference?)

DBServer is well recognized but as soon as there is a class that is derived from it, all methods seem to get lost.

I have looked at the compilerproperties. All Vo/Vulcan compatibility switches are set to true.

Is there anyone who has an idea how to solve this?

Jan

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

More
1 year 7 months ago #2 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic Error XS1061
Hi Jan,

AFAIK you need to add a reference to the right assembly (VODBserver) also in the executable where you are using the subclass, and if I remember correctly, also a using statement.

But I have to check it out better.

Wolfgang

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

More
1 year 7 months ago #3 by Wolfgang Riedmann
Replied by Wolfgang Riedmann on topic Error XS1061
Hi Jan,

maybe I have to explain better.

I suppose the DBServerKL class is defined in a library. This library has a reference to VulcanVORDDClasses and compiles.

Then you are using the DBServerKL class in an executable, and this executable has no reference to the VulcanVORDD classes. You need to add this, otherwise the DBServer methods and properties are not recognized.
You will have the same issue also with classes from the .NET framework.

The VO compiler hadn't this issue, it works in a different manner as it includes all classes from all used libraries.

Wolfgang

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

More
1 year 7 months ago #4 by Jan Timmer
Replied by Jan Timmer on topic Error XS1061
Hi Wolfgang,

Thanks for your answer. I have a reference to the VulcanVORDDClasses.
and now added using statement: using Vulcan.VO. This seems to do the trick.

It takes a while before the intellisence sinks in and displays something useful.

Anyway. problem seems solved!

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

More
1 year 7 months ago #5 by Robert van der Hulst
Replied by Robert van der Hulst on topic Error XS1061
Jan,

Jan Timmer wrote: Hi Wolfgang,
It takes a while before the intellisence sinks in and displays something useful.


Code completion is must better in the next build (beta 12 for FOX subscribers)
Fabrice has made some great improvements.

Robert

XSharp Development Team
The Netherlands
This email address is being protected from spambots. You need JavaScript enabled to view it.

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

More
1 year 7 months ago #6 by Chris Pyrgas
Replied by Chris Pyrgas on topic Error XS1061
Hi Jan,

In addition to what Robert said, the new build 12 (to be released in a very few days) also has several compiler improvements regarding compatibility with VO. So several (but of course not all) of the errors you will be seeing when trying to compile unmodified VO code with build 11 are not present anymore with build 12.

Also regarding the need to add USING Vulcan.VO statements, you can avoid this by enabling the "Enable implicit namespace lookup" project option (also in the Language page), this way the compiler will automatically take care of this.

Chris

XSharp Development Team
chris(at)xsharp.eu

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