1 |
francois |
283 |
//--------------------------------------------------------------------------- |
2 |
|
|
|
3 |
|
|
#include <windows.h> |
4 |
|
|
//--------------------------------------------------------------------------- |
5 |
|
|
// Important note about DLL memory management when your DLL uses the |
6 |
|
|
// static version of the RunTime Library: |
7 |
|
|
// |
8 |
|
|
// If your DLL exports any functions that pass String objects (or structs/ |
9 |
|
|
// classes containing nested Strings) as parameter or function results, |
10 |
|
|
// you will need to add the library MEMMGR.LIB to both the DLL project and |
11 |
|
|
// any other projects that use the DLL. You will also need to use MEMMGR.LIB |
12 |
|
|
// if any other projects which use the DLL will be performing new or delete |
13 |
|
|
// operations on any non-TObject-derived classes which are exported from the |
14 |
|
|
// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling |
15 |
|
|
// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases, |
16 |
|
|
// the file BORLNDMM.DLL should be deployed along with your DLL. |
17 |
|
|
// |
18 |
|
|
// To avoid using BORLNDMM.DLL, pass string information using "char *" or |
19 |
|
|
// ShortString parameters. |
20 |
|
|
// |
21 |
|
|
// If your DLL uses the dynamic version of the RTL, you do not need to |
22 |
|
|
// explicitly add MEMMGR.LIB as this will be done implicitly for you |
23 |
|
|
//--------------------------------------------------------------------------- |
24 |
|
|
|
25 |
|
|
#pragma argsused |
26 |
|
|
int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved) |
27 |
|
|
{ |
28 |
|
|
return 1; |
29 |
|
|
} |
30 |
|
|
//--------------------------------------------------------------------------- |
31 |
|
|
|