Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT bug...
Message
From
26/10/2004 16:17:00
Thomas Ganss (Online)
Main Trend
Frankfurt, Germany
 
 
To
26/10/2004 16:01:36
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00641141
Message ID:
00954681
Views:
12
Hi Mike,
>It is impossible to use NewObject() using a PRG based class that is located in another EXE.
>
>It needs to be a VCX. I was looking for work-arounds so excuse the old thread, but I thought I could add something here:

pure mind games to get analogous behaviour for prg's:

first method would be to have a small [redundant] procedure in the prg returning the object handle in a parameter and to call that procedure via "do objstart with ... in xxx.prg".
Current program is checked for the class before the classlibs, and since the "starter" is inside the prg...

second method would be a generic objstart method, pushing the prg onto the procedure stack,
creating the object and restoring the old procedure stack. possible source of error here is such a class inside the classlib search, since this is checked before going through set proc and the real program stack.

not pretty, but should qualify as workarounds <g>

regards

thomas
Previous
Reply
Map
View

Click here to load this message in the networking platform