diff --git a/EGrDllMain.cpp b/EGrDllMain.cpp
index c6adbc3..7326ab6 100644
--- a/EGrDllMain.cpp
+++ b/EGrDllMain.cpp
@@ -44,6 +44,12 @@ DllMain( HMODULE hModule, DWORD dwReason, LPVOID lpReserved)
{
if ( dwReason == DLL_PROCESS_ATTACH) {
+ #if defined( NDEBUG)
+ BOOL IsDbgPresent = FALSE ;
+ CheckRemoteDebuggerPresent( GetCurrentProcess(), &IsDbgPresent) ;
+ if ( IsDbgPresent)
+ return 0 ;
+ #endif
s_hModule = hModule ;
EGT_TRACE( "EgtGraphics.dll Initializing!\n") ;
}
diff --git a/EgtGraphics.rc b/EgtGraphics.rc
index 101c387..2fa6fc5 100644
Binary files a/EgtGraphics.rc and b/EgtGraphics.rc differ
diff --git a/EgtGraphics.vcxproj b/EgtGraphics.vcxproj
index dc842a4..0d0e81a 100644
--- a/EgtGraphics.vcxproj
+++ b/EgtGraphics.vcxproj
@@ -107,7 +107,7 @@
copy $(TargetDir)$(TargetName).pdb \EgtDev\Lib\
copy $(TargetDir)$(TargetName).lib \EgtDev\Lib\
-copy $(TargetPath) \EgtProg\Dll32
+copy $(TargetPath) \EgtProg\DllD32
_UNICODE;UNICODE;_DEBUG;_DEB32;%(PreprocessorDefinitions)
@@ -132,7 +132,7 @@ copy $(TargetPath) \EgtProg\Dll32
copy $(TargetDir)$(TargetName).pdb \EgtDev\Lib\
copy $(TargetDir)$(TargetName).lib \EgtDev\Lib\
-copy $(TargetPath) \EgtProg\Dll64
+copy $(TargetPath) \EgtProg\DllD64
_UNICODE;UNICODE;_DEBUG;_DEB64;%(PreprocessorDefinitions)
@@ -157,7 +157,7 @@ copy $(TargetPath) \EgtProg\Dll64
Windows
- true
+ false
true
true
@@ -189,7 +189,7 @@ copy $(TargetPath) \EgtProg\Dll32
Windows
- true
+ false
true
true