graphics.h on modern systems!!

Feb 22, 2011 at 5:55pm
I need urgent help, as how can I run graphics.h programs on modern system.
My program compiles with no errors but it doesn't run.
I use DosBox.
Also tell me any settings to use in it.
My IDE is Turbo C++ 3.0Thanks in advance.
Feb 22, 2011 at 8:41pm
Do you want to compile for a modern systems or for DOS?
If you want to compile for DOS and run your program on DosBox, why is that?
Feb 22, 2011 at 10:31pm
google winBGIm
Feb 23, 2011 at 1:15pm
what's the source you used in initgraph ?
Feb 23, 2011 at 5:23pm
What difference does it make? The WinBGIm uses Windows natively, and as the documentation states,

http://www.cs.colorado.edu/~main/cs1300/doc/bgi/initgraph.html
The winbgim version of initgraph uses its parameters only to determine the size of the window that will be created. For example, initgraph(CGA, CGAC3) will create a 320 x 200 window. As an alternative, the user may call initwindow(width, height) instead of initgraph.
Feb 23, 2011 at 6:49pm
Thanks all of you I got the solution of my problem, I had not been providing the address of display drivers in the initgraph, so I just copied all the contents of BGI folder to BIN folder and now my program runs fine.
Topic archived. No new replies allowed.