Ever wanted to know where you are in your code when running a release version? use this
AllocConsole();
freopen("conin$", "r", stdin);
freopen("conout$", "w", stdout);
freopen("conout$", "w", stderr);
and now you can use "printf" to output debug on a simple console.
Tuesday, May 26, 2009
C++ - HowTo printf on release version
תוויות:
c++
Subscribe to:
Post Comments (Atom)
0 תגובות:
Post a Comment