Subj : Re: Using a Class from the main App in a DLL To : borland.public.cpp.borlandcpp From : "Gary Setter" Date : Wed Apr 14 2004 10:44 am "M.Kenner" wrote in message news:407d1faf@newsgroups.borland.com... > How can i use a Class from the main App in a DLL ? Have you exported a class from a DLL before? Is it ok, to use static linking for the member functions? I usually define a macro like EXPORT. If the pre-defined macros __DLL__ is defined, EXPORT is defined as _import; else EXPORT is defined as _export. Basically. you do the reverse of exporting from DLL. You also need to run IMPLIB on the main executable and link the resulting lib file with the dll. BTW, if you are using Builder (the current compiler) you are in the wrong news group. Look for a news group with builder in the name. Good luck, Gary .