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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only