Archived

This topic is now archived and is closed to further replies.

Tac-Tics

Console in Windows Programming

Recommended Posts

I''m new to Windows programming. My problem is I need to somehow printout to a console while I test out some stuff in OpenGL. cout and printf don''t work, so how can I simulate a console? Any help = thnx.

Share this post


Link to post
Share on other sites
You could read thru some of the tutorials at nehe.gamedev.net, he has good tutorials about making and printing fonts. And there''s coming a tutorial about making a console similar to those seen in the quake series( and all fps with some selfrespect in "short" time.. I suggest you go read the font tutorials now =) good luck

Kenneth Wilhelmsen
Try my little 3D Engine project, and mail me the FPS. WEngine
Or just visit my site
--------------------------
He who joyfully marches to music in rank and file has already earned my contempt. He has
been given a large brain by mistake, since for him the spinal cord would fully suffice. This
disgrace to civilization should be done away with at once. Heroism at command, senseless
brutality, deplorable love-of-country stance, how violently I hate all this, how despicable and ignoble war is; I would rather be torn to shreds than be a part of so base an action! It is my conviction that killing under the cloak of war is nothing but an act of murder

Share this post


Link to post
Share on other sites
Alternatively, create a console app (entry point main and all) and then use Win32 functions from there, getting the effects of the above-referenced article for free (cout, cin, cerr instantiated to represent appropriate console buffers/strams).

[ GDNet Start Here | GDNet Search Tool | GDNet FAQ ]
[ MS RTFM [MSDN] | SGI STL Docs | Boost ]
[ Google! | Asking Smart Questions | Jargon File ]
Thanks to Kylotan for the idea!

Share this post


Link to post
Share on other sites