>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 have a VCX. If I don't include that main class in the sub EXE project (it is present but marked as excluded), the program will hang. If I include it, it will work but the size of the sub EXE is now much bigger because of those additional 352k coming in from the main class. The compiler adds that class automatically at compile time. I can't get rid of that.