Enter Command from prompt.

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;


or I need to use MFC?

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 …

I could do without using MFC.