>It depends on how you instantiate an object and works for VCX's only. For CREATEOBJECT() you can add SET CLASSLIB TO ... IN main.exe. For NEWOBJECT(), specify the third parameter.
I think you wanted to say SET CLASSLIB TO ... in sub EXE. Is that correct?