Subj : Re: Build DLL using bcc32 To : borland.public.cpp.borlandcpp From : "Joe Robert" Date : Fri Nov 14 2003 07:23 am "Ed Mulroy [TeamB]" wrote: >If the files file1.cpp and file2.cpp are the source code for the DLL then >this command line should create the DLL. > > bcc32 -WD file1 file2 > >. Ed > >> Joe Robert wrote in message >> news:3fb4d791$1@newsgroups.borland.com... >> >> Hi, IŽd like to know, how can I build a DLL using the >> bcc32 command prompt. > > I had the following warnings and erros: Warning W8057 sample.cpp 42: Parameter 'hinstDLL' is never used in function __st dcall DllMain(HINSTANCE__ *,unsigned long,void *) Warning W8057 sample.cpp 42: Parameter 'fwdreason' is never used in function __s tdcall DllMain(HINSTANCE__ *,unsigned long,void *) Warning W8057 sample.cpp 42: Parameter 'lpvReserved' is never used in function _ _stdcall DllMain(HINSTANCE__ *,unsigned long,void *) Error E2133: Unable to execute command 'ilink32.exe' Here is my source code: #include extern "C" __declspec(dllexport) int DLLVersionMajor( void ) { MessageBox( NULL, "I'm inside C++ DLL :-) - Function MAJOR", "", MB_OK ); return 1; } extern "C" __declspec(dllexport) int DLLVersionMinor( void ) { MessageBox( NULL, "I'm inside C++ DLL :-) - Function MINOR", "", MB_OK ); return 0; } BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fwdreason, LPVOID lpvReserved) { return 1; } What is wrong? .