Console in Windows Programming

Started by
3 comments, last by Tac-Tics 21 years, 11 months ago
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.
Advertisement
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
Take a look at the API function AllocConsole() - it should do what you need.

You should be able to find complete examples on google.
Look here: Adding Console I/O to a Win32 GUI App.
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!

This topic is closed to new replies.

Advertisement