I have developed a graphic program on a desktop system. But when I tried to run it on the hp compaq laptop it\'s not getting executed. I developed it using Turbo C. Then i t
The first step in any graphics program is to initialize the graphics drivers on the computer using initgraph method of graphics.h library.
void initgraph(int *graphicsDriver, int *graphicsMode, char *driverDirectoryPath);
It initializes the graphics system by loading the passed graphics driver then changing the system into graphics mode. driverDirectoryPath : It specifies the directory path where graphics driver files (BGI files) are located. If directory path is not provided, then it will seach for driver files in current working directory directory. Sample initialization statement
initgraph(&gd, &gm, "C:\\TC\\BGI");
Here is a list of C graphics program for reference :http://www.techcrashcourse.com/2015/08/c-graphics-programming-tutorial.html
Additionally, you can try using DOSBOX to run C graphics programs in Windows OS. I tried DOSBOX and it works smoothly in Windows. Here is one C graphics program which I tried using DOS Box http://www.techcrashcourse.com/2015/08/c-program-bouncing-ball-animation-graphics.html