Subj : Re: Build DLL using bcc32 To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Fri Nov 14 2003 01:03 pm The error saying that the linker could not be found suggests that the installation is corrupted. Uninstall the compiler and install it again from the Borland C++ distribution CDROM. That source code is a mix of Win16 and Win32 code. Use DllEntryPoint instead of DllMain in Win32 bit DLL code. The warnings are correct. You are not using the function's calling parameters. You can suppress the warnings by placing this pragma on a line immediately before the function #pragma argsused Since you are using C++ and not C there is an alternative way to suppress them. Omit the variable name in the function header. For instance, instead of -------------- int FuncName(int unused1, int unused2) { return 2; } -------------- Use one of these two techniques: -------------- #pragma argsused int FuncName(int unused1, int unused2) { return 2; } -------------- -------------- /* works only in C++ */ int FuncName(int, int) { return 2; } -------------- .. Ed > Joe Robert wrote in message > news:3fb4f35e$1@newsgroups.borland.com... > > I had the following warnings and erros: > Warning W8057 sample.cpp 42: Parameter 'hinstDLL' is > never used in function __stdcall > DllMain(HINSTANCE__ *,unsigned long,void *) > Warning W8057 sample.cpp 42: Parameter 'fwdreason' is > never used in function __stdcall 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? .