Chad,
I'm not totally sure I'm following you, but have you tried:
oTestObject = newobject("class1","masterApp.exe")
Where class1 is a class compiled into the master application? Be sure to provide the path to the master app, if it is in another directory.
>I have created a FoxPro v6.0 program (i'll call it myapp) that runs inside another FoxPro v6.0 program (i'll call it masterapp). The masterapp has a number of class libraries (.vcx) compiled into the .exe. Myapp sub-classes these class libraries to create my sub-classed objects. This has all been done in my VFP project. In order to get my sub-classed objects on one of the masterapp's forms, I have to compile the masterapp's class libraries in with myapp when I build the app. I do not want to have to do this.
>
>Since the masterapp's class libraries are compiled into the .exe, is there a way I can sub-class on the fly. I have tried to write a procedure to do this: DEFINE CLASS myobj as masterobj... However, when I try to add one of my sub-classed objects to a form I receive an "Error instantiating class" error. I appologize if this is confusing, if anyone reads this and can help it would be much appreciated. Basically what I am getting at is I do not want to send the masterapp's class libraries out with myapp.
Steve Gibson