On Sat, Sep 19, 2009 at 4:14 PM, Gopi Krishna Komanduri <[email protected]> wrote: > Hi Folks, > I have a query. I have one class declared in one file and that was build as > an exe . No Libs generated. Now I need to use this class in another file , > which is not in the part of that exe. Could you please suggest how can I do > this? > ex: > File1.cpp --> File1.exe > class MyCls > { > > > } > > File2.cpp --> File2.exe > MyCls Obj; > How can I achieve this?
You can't - exe files don't containt class information or even variable names (debug builds can, but that won't help). What you need is the class code from the first exe's source code. -- Tamas Marki
