summaryrefslogtreecommitdiff
path: root/KPL_DLL_Entry_Point.cpp
diff options
context:
space:
mode:
authorEric Anderson <ejona86@gmail.com>2009-05-01 17:14:46 -0500
committerEric Anderson <ejona86@gmail.com>2009-05-01 17:14:46 -0500
commit663d9336324110648ffdea7c7092a004353419b5 (patch)
treed35eccc38a36859bc317796a2058497ed9d8c382 /KPL_DLL_Entry_Point.cpp
downloadkpl-663d9336324110648ffdea7c7092a004353419b5.tar.gz
kpl-663d9336324110648ffdea7c7092a004353419b5.zip
Initial commit of source from zwzsg
Diffstat (limited to 'KPL_DLL_Entry_Point.cpp')
-rw-r--r--KPL_DLL_Entry_Point.cpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/KPL_DLL_Entry_Point.cpp b/KPL_DLL_Entry_Point.cpp
new file mode 100644
index 0000000..4630d85
--- /dev/null
+++ b/KPL_DLL_Entry_Point.cpp
@@ -0,0 +1,31 @@
+//---------------------------------------------------------------------------
+
+#include <windows.h>
+//---------------------------------------------------------------------------
+// Important note about DLL memory management when your DLL uses the
+// static version of the RunTime Library:
+//
+// If your DLL exports any functions that pass String objects (or structs/
+// classes containing nested Strings) as parameter or function results,
+// you will need to add the library MEMMGR.LIB to both the DLL project and
+// any other projects that use the DLL. You will also need to use MEMMGR.LIB
+// if any other projects which use the DLL will be performing new or delete
+// operations on any non-TObject-derived classes which are exported from the
+// DLL. Adding MEMMGR.LIB to your project will change the DLL and its calling
+// EXE's to use the BORLNDMM.DLL as their memory manager. In these cases,
+// the file BORLNDMM.DLL should be deployed along with your DLL.
+//
+// To avoid using BORLNDMM.DLL, pass string information using "char *" or
+// ShortString parameters.
+//
+// If your DLL uses the dynamic version of the RTL, you do not need to
+// explicitly add MEMMGR.LIB as this will be done implicitly for you
+//---------------------------------------------------------------------------
+
+#pragma argsused
+int WINAPI DllEntryPoint(HINSTANCE hinst, unsigned long reason, void* lpReserved)
+{
+ return 1;
+}
+//---------------------------------------------------------------------------
+ \ No newline at end of file