As a C coder (going on C++ coder), I print debug text or information using fprintf(stderr,"") or fprintf(stdout,"")
This isn't desirable when building a release version of a game, as it would require a console box to be open. How would I pipe text and debug information to console and have it not show up in a release version?
Printing text
i just did a quick search of the forums and found this.
this will supposably hide the console window. you just need to put it just before your main()
*note i havent tested it, its just what i have seen*
Code: Select all
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
*note i havent tested it, its just what i have seen*
Cheers
Courtney
Courtney
thanks! to be honest i thought i would have to rewrite my code to stream text to the irr streamAtraides wrote:i just did a quick search of the forums and found this.
this will supposably hide the console window. you just need to put it just before your main()Code: Select all
#pragma comment(linker, "/SUBSYSTEM:windows /ENTRY:mainCRTStartup")
*note i havent tested it, its just what i have seen*
but that seems a lot easier. However i notice the "/SUBSYSTEM:windows", does this mean its not cross compatible?