diff --git a/EInDllMain.cpp b/EInDllMain.cpp index 672141f..4fb89f6 100644 --- a/EInDllMain.cpp +++ b/EInDllMain.cpp @@ -43,6 +43,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( "EgtInterface.dll Initializing!\n") ; } diff --git a/EgtInterface.vcxproj b/EgtInterface.vcxproj index bd5c731..e371f96 100644 --- a/EgtInterface.vcxproj +++ b/EgtInterface.vcxproj @@ -92,6 +92,7 @@ Level3 Disabled WIN32;I_AM_EIN;_DEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + ProgramDatabase Windows @@ -101,7 +102,7 @@ copy $(TargetDir)$(TargetName).pdb \EgtDev\Lib\ copy $(TargetDir)$(TargetName).lib \EgtDev\Lib\ -copy $(TargetPath) \EgtProg\Dll32 +copy $(TargetPath) \EgtProg\DllD32 _UNICODE;UNICODE;_DEB32;%(PreprocessorDefinitions) @@ -122,7 +123,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;_DEB64;%(PreprocessorDefinitions) @@ -132,7 +133,7 @@ copy $(TargetPath) \EgtProg\Dll64 Level3 Use - MaxSpeed + Full true true WIN32;I_AM_EIN;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) @@ -158,12 +159,13 @@ copy $(TargetPath) \EgtProg\Dll32 Level3 Use - MaxSpeed + Full true true WIN32;I_AM_EIN;NDEBUG;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) Speed AnySuitable + false Windows