graphics.h on modern systems!!

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.
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?
google winBGIm
what's the source you used in initgraph ?
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.
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.