Is there a way to detect a debug build?
-
Given an executable compiled using VC++ (unmanaged), is there a way to identify if the EXE is a debug or release build? Obviously, if you had the two builds side by side, the larger would be the debug, but is there a way to detect if the EXE is a debug build? Regards
-
Given an executable compiled using VC++ (unmanaged), is there a way to identify if the EXE is a debug or release build? Obviously, if you had the two builds side by side, the larger would be the debug, but is there a way to detect if the EXE is a debug build? Regards
Well one way would be to check its DLL dependancies and if it was using the MFC/CRT Debug DLL's you'd now. There are probably better ways. :) IMO Debug .EXE's should be able to identified by their filename, in the same way Debug DLL's are. Neville Franks, Author of ED for Windows. Free Trial at www.getsoft.com
-
Given an executable compiled using VC++ (unmanaged), is there a way to identify if the EXE is a debug or release build? Obviously, if you had the two builds side by side, the larger would be the debug, but is there a way to detect if the EXE is a debug build? Regards
-
how about #ifdef _DEBUG /* do something here */ #endif is that what you were asking? ~LizardWiz()
No, I was looking more for something to determine if a selected EXE is a debug build or not. Not from within code, but if someone just hands you an EXE, how can I determine if it is a DEBUG build. I think Neville answered my question...just wish there was a little easier solution. I was hoping for something more programmatic...an app I could drag and drop an EXE into or a shell extension that I could use to right click and select on an EXE in Explorer. thanks for the response, though.