Subj : [BCC32] how to include a DLL to compile To : borland.public.cpp.borlandcpp From : P. Magne Date : Tue Mar 22 2005 11:44 am Hello, I use BCC32.exe to compile cpp files and in 1 cpp file I use a TModule () to link with MAPI32.DLL(which is in folder c:\winnt\system32), and I don't know how to tell to bcc32.exe to link with this DLL ? 1.Here's my cpp gile #include class _WLCLASS WkTapi { protected : TModule * TapiDll ; public : WkTapi ( void ) ; } WkTapi::WkTapi ( void ) { TapiDll = new TModule ( "TAPI32.DLL" ) ; } 2. Here's my command line bcc32 -c myfile.cpp -P In my bcc32.cfg file , I have the line -IC:\WINNT\SYSTEM32\MAPI32.DLL and the error is : Error myfile.cpp : Type name expected ; Error myfile.cpp : Declaration missing ; on the line TModule * TapiDll ; Do you have an idea Thank you Philippe .