Tuesday, July 28, 2009

C++ Query V.V.URGENT: how to set path for graphics library functions in c++??

the actual problem is whenevr i run the programs containg library functions defined in the file graphics.h the program output shows a .BGI error..so can u suggest me any way to solve this error????

C++ Query V.V.URGENT: how to set path for graphics library functions in c++??
In you programm you are using this function in the following way.


initgraph(%26amp;gdriver, %26amp;gmode, "");





but in this function you have give the path of you tc\bgi folder.


I assume this folder is placed on system in "C:\tc\bgi".Please search this bgi folder in TC folder whatever you use(turboc2 etc)


and give the full path in your initgraph function. just like


initgraph(%26amp;gdriver, %26amp;gmode, "C:\\TC\\BGI\\");


Hope this will help.


No comments:

Post a Comment