I have some old code that uses the console to get parameters (printf and scanf types) and changes the operations in an OPENGL window.
GlutKeyboardFunc is used once focus is transfered to the GL window. Previous to the focus change, input is to the Console..
Is there a quick way to move the Console portion into a Window and to bypass the Console usage as it is now Is there a dummy Console routine that could run in a Window
Thanks in advance.
RON C

Move Console code to Window - opengl
ondy1985
David,
Thanks.
What if I just wished to take a simple (non-GL) DOS type program and modify it to "redirect" the console input/output Can that be done Is there a way to redirect like we used to do with DOS programs (back in the good old days - har har)
RON C
saspath
Amrit
This is a bit off topic, but using the .net framework you can use the process classes in the System.diagnostics namespace to execute a command line application or Console Application. In doing this the process class allows you to redirect the output to a stream, now this can be a file or memory stream which you can then break apart.
If you need help on this I would post the messages in the relevant language specific groups on the site.
Vijay2kr
Y'know...and I'm just thinking outloud here....I think you'd have FAR better luck finding an answer for OpenGL questions at www.opengl.org, rather than asking on a DirectX forum.
Just my two cents.
JBu
Hi Glenn,
Can you mail me with info about how doing that That's exactly what I want to do: redirecting the console output stream, without showing anything to the user.
If it is not too much hassle, my email is brunosaboia -;AT;- msn.com
Thanks.