Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NEWOBJECT bug...
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00641141
Message ID:
00954673
Views:
18
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:


>>There was discussion about that in the Thread #553005. Looks like you can use the third parameter in the NEWOBJECT function for .VCX based classes only.
>
>Sergey,
>
>Ok, reread the function and yes you're right about the third parameter. It does state that in a not so obvisious way... IMO.
>
>Could someone please tell me why the third parameter of the NEWOBJECT() function can't be used the for a (.prg) as well as the (.vcx)? Is there some problem with the SET PROCEDURE that doesn't make this very easy to implement? I mean there must be a reason...


The reason is probably because a VCX is a DBF, and they are very easy to read out of EXE's, whereas a PRG is actually compiled into a larger set of code, so it doesn't remain isolated in the project like a VCX/DBF.

To workaround use a VCX class.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform