How to prepare VO for using methods from another library?
Posted: Mon May 03, 2021 4:23 pm
This is a bit a follow up of this post:
https://www.xsharp.eu/forum/public-vo-v ... rary#13964
In short:
Most of our programs are a main program (often not more than a standard shell menu) and a few included libraries.
We have 1 AEF/library in VO which is basically our e-mail program. In this AEF, there are a few methods in 1 MEF from classes from our main library.
E.g.
Method ShowMail(param1,param2) CLASS SomeWindow
// Opens specific methods and windows from the email library
This method is called from the main library as follows: Send(#Showmail,param1,param2). This we need to do because in the library itself method ShowMail is not available.
This works fine in VO, but it does not when eventually we move to X#. .Net does not allow a method of class SomeWindow to reside in another prg than where the SomeWindow class is, otherwise you get external classes generated and everywhere error XS9016 .
What would be a recommended way to solve this in VO to make a future move to X# easy?
Dick
https://www.xsharp.eu/forum/public-vo-v ... rary#13964
In short:
Most of our programs are a main program (often not more than a standard shell menu) and a few included libraries.
We have 1 AEF/library in VO which is basically our e-mail program. In this AEF, there are a few methods in 1 MEF from classes from our main library.
E.g.
Method ShowMail(param1,param2) CLASS SomeWindow
// Opens specific methods and windows from the email library
This method is called from the main library as follows: Send(#Showmail,param1,param2). This we need to do because in the library itself method ShowMail is not available.
This works fine in VO, but it does not when eventually we move to X#. .Net does not allow a method of class SomeWindow to reside in another prg than where the SomeWindow class is, otherwise you get external classes generated and everywhere error XS9016 .
What would be a recommended way to solve this in VO to make a future move to X# easy?
Dick