Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
New stuff gets included
Message
From
20/11/2004 19:05:40
 
 
To
20/11/2004 04:19:21
General information
Forum:
Visual FoxPro
Category:
Project manager
Miscellaneous
Thread ID:
00960731
Message ID:
00963255
Views:
9
I finally found something working. I created this function in the main EXE:
* Create an object of a sub class as this is not possible from a COM environment
* when the main class is in the framework
* expC1 Name of the class
FUNCTION CreateObjectMain
PARAMETERS tcClass
LOCAL loClass
loClass=CREATEOBJECT(tcClass)
RETURN loClass
Then from the sub EXE:
loList=CreateObjectMain('News')
But, in order for this to work, I had to move the class library from the sub EXE into the main EXE and issue the SET CLASSLIB for that class library in the main EXE as well. So, whenever I have to modify one of those classes, I have to recompile the main EXE. But, at least, I can preserve the actual infrastructure of all other entities that are ready to be updated from the sub EXE. I tried to avoid that but, even when being called from this function, the CREATEOBJECT() was not working if the class library was not included in the main EXE.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform