Making DLL’s with Borland is not
dependent upon the Operating System. In your existing project,
select Project|New
Target. On the ensuing
dialog, type in the name of the DLL and accept the default STANDARD. Press OK. On the next dialog, choose Target Type DLL, platform WIN32. For OpenSLL I
presume it won’t be a GUI interface (for the DLL), so choose Target Model
“Console”. In the DLL CPP module, you need to declare
an entry point. The syntax is very
sensitive. Here’s an example
(the GetModuleFileName() is not required, it was something I needed for my
specific requirements. BOOL WINAPI DllEntryPoint( HINSTANCE hInstance, DWORD /*fdwRreason*/,LPVOID
/*plvReserved*/) { char
*p; ::GetModuleFileName(hInstance,LoadDirectory, MAXPATH); // now remove file name p=strrchr(LoadDirectory, '\\'); *p='\x0'; lstrcat(LoadDirectory, "\\"); return 1;
// Indicate that the DLL was initialized successfully. } HTH Harry -----Original Message----- Does anybody know how to make DLLs
using Borland C Compiler under Windows 2000? Jon |
- BCC and DLLs Jonathan Marriott
- Harry