PDA

View Full Version : Enter Command from prompt.



08-08-2001, 06:31 AM
Hi!
I want to know how can I enter some command from MSDOS prompt
and then draw picture on OpenGL Window.
Again back to MSDOS prompt and enter command
and draw picture...

I wrote input commad in display function but it did not work.

void display(void)
{
char c[20];
cin >> c;
while
...
}

or I need to use MFC?

juglarx
08-08-2001, 06:44 AM
No you don't need MFC your code is fine but take care , the stdin is slowly ....you will see a decrement in your FPS ....
cya!

08-10-2001, 05:31 AM
Thanks.
I could do without using MFC.