From c6a97c8bfc7e0aeabf701cbd13a0d522ad9db833 Mon Sep 17 00:00:00 2001 From: Dario Sassi Date: Wed, 10 Sep 2014 13:12:14 +0000 Subject: [PATCH] EgtGraphics 1.5i2 : - aggiunti controlli contro debug in versioni release - modifiche configurazione per copia DLL debug. --- EGrDllMain.cpp | 6 ++++++ EgtGraphics.rc | Bin 11390 -> 11390 bytes EgtGraphics.vcxproj | 8 ++++---- 3 files changed, 10 insertions(+), 4 deletions(-) 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 101c387a97d4e01335e389e788bb0f4c59d6d568..2fa6fc5e9c07750e109f80bd2fa4df3f4d2f4ece 100644 GIT binary patch delta 81 zcmewt@h@V-H#SD2&G%&mnSs F+yK2>8_xg$ delta 81 zcmewt@h@V-H#SDY&G%&mnSs F+yJ~O8^-_u 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