Hi,
I am using Code::Blocks 17.12 with C++ for Win32 programming.
Is there an easy way to determine if a compiled program was launched from the IDE or manually by clicking on the compiled program in its directory?
The best I have been able to come up with is to use Window's GetCurrentDirectory function and see if the program was launched from my project directory or the Debug/Release directories that are created for me by Code::Blocks when I build a project from within the IDE.
Suggestions?