Subj : Re: [BCC32] how to include a DLL to compile To : borland.public.cpp.borlandcpp From : Ed Mulroy [TeamB] Date : Tue Mar 22 2005 09:18 am You are missing a semicolon > class _WLCLASS WkTapi > { protected : TModule * TapiDll ; > public : WkTapi ( void ) ; > } <=== HERE .. Ed > P. Magne wrote in message > news:423ff727$1@newsgroups.borland.com... > 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 .