i am using turboc c++ compiler .how to initialize the graphics drivers .pl
let me know.
madhub2v
-2
Light Poster
Recommended Answers
Jump to Postmadhub2v,
Welcome to DaniWeb!
Can you please be more specific with your question? Which operating system are you using? Which GUI system are you planning to use? What exactly are you trying to do?
Dave
Jump to Postint main() { int gDriver=DETECT; //Detect the top priority graphic Driver. int gMode; initgraph(&gDriver, &gMode, <path to bgi directory: string>); //Initialize the graphic Mode. //Do something closegraph(); //Terminate graphic mode. restorecrtmode();//<--This is important. Restore to previous mode (Text mode) return 1; }
This should be sufficient but …
All 7 Replies
daviddoria
334
Posting Virtuoso
Featured Poster
nbaztec
45
Posting Pro in Training
madhub2v
-2
Light Poster
nbaztec
45
Posting Pro in Training
madhub2v
-2
Light Poster
apee_mimi
0
Newbie Poster
daviddoria
334
Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.