summaryrefslogtreecommitdiff
path: root/Ivy/IvyDllMain.cpp
diff options
context:
space:
mode:
authorfcolin2007-02-01 13:01:53 +0000
committerfcolin2007-02-01 13:01:53 +0000
commitfac0389f44d31bbe4f0f5a3021fc15ffa7e3c66a (patch)
tree48141a0db4096ffcaf876f726dc4c9d0ca903aac /Ivy/IvyDllMain.cpp
parent6a70ff0dd344091a4568edfd25f993d8c3e4a543 (diff)
downloadivy-cplusplus-fac0389f44d31bbe4f0f5a3021fc15ffa7e3c66a.zip
ivy-cplusplus-fac0389f44d31bbe4f0f5a3021fc15ffa7e3c66a.tar.gz
ivy-cplusplus-fac0389f44d31bbe4f0f5a3021fc15ffa7e3c66a.tar.bz2
ivy-cplusplus-fac0389f44d31bbe4f0f5a3021fc15ffa7e3c66a.tar.xz
Utilisateur : Fcolin Date : 16/06/00 Heure : 10:14 Créé (vss 1)
Diffstat (limited to 'Ivy/IvyDllMain.cpp')
-rw-r--r--Ivy/IvyDllMain.cpp29
1 files changed, 29 insertions, 0 deletions
diff --git a/Ivy/IvyDllMain.cpp b/Ivy/IvyDllMain.cpp
new file mode 100644
index 0000000..ac1a854
--- /dev/null
+++ b/Ivy/IvyDllMain.cpp
@@ -0,0 +1,29 @@
+// libIvy.cpp : Defines the initialization routines for the DLL.
+//
+
+#include "stdafx.h"
+
+
+extern "C" int APIENTRY
+DllMain(HINSTANCE hInstance, DWORD dwReason, LPVOID lpReserved)
+{
+ // Remove this if you use lpReserved
+ UNREFERENCED_PARAMETER(lpReserved);
+
+ if (dwReason == DLL_PROCESS_ATTACH)
+ {
+ TRACE("LIBIVY.DLL Initializing!\n");
+
+ // Extension DLL one-time initialization
+ //if (WSAInit)
+ // return 0;
+
+
+ }
+ else if (dwReason == DLL_PROCESS_DETACH)
+ {
+ TRACE("LIBIVY.DLL Terminating!\n");
+ // Terminate the library before destructors are called
+ }
+ return 1; // ok
+}