Bgi Error Graphics Not Initialized Use Initgraph Turbo-c
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have graphics not initialised use initgraph Meta Discuss the workings and policies of this site About Us
Initgraph Not Working
Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with how to remove bgi error in turbo c us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just
Initgraph Path
like you, helping each other. Join them; it only takes a minute: Sign up BGI Error:Graphics not initialised(use initgraph)…in DOSBOX…Win 7 up vote -1 down vote favorite i gave the location of bgi folder in my c drive as below: initgraph(&gd,&gm,"C:\\TurboC++\\Disk\\TurboC3\\BGI"); the program compiles without any error but while running nothing appears... when i press alt+f5 i how to set bgi path in c found this error...How to resolve this? c graphics dosbox share|improve this question asked Jul 16 '13 at 17:45 user1943533 1115 i am not mounting it so only it doesn't worked...mount E: C:\\TurboC++\\Disk\\TurboC3\\ then type E: then cd bin then type tc and hit enter in the program change to E:\\BGI...it worked... –user1943533 Jul 23 '13 at 18:08 add a comment| 2 Answers 2 active oldest votes up vote 0 down vote I hope this helps: Now, as we know the BGI folder is usually in the following path, C:\TurboC++\disk\TurboC3\BGI BGI is inside the folder "TurboC3" and NOT "TC". So the code you need to put in your program is as follows, initgraph(&gd, &gm, "C:\\TurboC3\\BGI"); share|improve this answer edited Sep 9 '13 at 11:28 answered Sep 9 '13 at 11:15 Theja 1,0993710 add a comment| up vote 0 down vote After declaring variable. You have to write the following code in your program. initgraph(&gd , &gm ,"C:\\TurboC++\\BGI"); share|improve this answer edited Jul 30 '15 at 10:34
you need http://www.softwareandfinance.com/Turbo_C/Graphics_BGI_Error.html to copy the \tc\bgi\EGAVGA.BGI file to your local folder where you are running the application Disclaimer: This web site is for educational and informational purposes only. Click here to read the Disclaimer. Content copyright 2010-2015. Betelgeuse LLC. All rights reserved.
is compiling without any errors...but is does not run...c Page 1 of 1 New http://www.dreamincode.net/forums/topic/30426-bgi-error-graphics-not-initialized-use-initgraph/ Topic/Question Reply 6 Replies - 35071 Views - Last Post: 30 April 2009 - 05:25 PM Rate Topic: #1 divya272 New D.I.C Head http://forum.digit.in/graphic-cards/7038-bgi-error-graphics-not-initialized-use-initgraph.html Reputation: 1 Posts: 2 Joined: 15-July 07 BGI error: Graphics not initialized (use initgraph) Posted 15 July 2007 - 07:49 AM /*Project on Ticket how to Reservation in a Cinema Complex*/ # include Register Help Remember Me? Forum User CP Forum Rules Forum Actions Mark Forums Read Quick Links Today's Posts View Site Leaders Thanks / Like Statistics Hottest Threads / Posts What's New? Digit.in Advanced Search Forum Hardware Graphic cards Bgi Error: Graphics not initialized (use initgraph) If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. Likes: 0 Dislikes: 0 Results 1 to 4 of 4 Thread: Bgi Error: Graphics not initialized (use initgraph) Thread Tools Show Printable Version Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 17-03-2005,11:13 AM #1 freak_pkp View Profile View Forum Posts Right off the assembly line Join Date Mar 2005 Posts 1 Post Thanks / Like Likes (Given) 0 Likes (Received) 0 Dislikes (Given) 0 Dislikes (Received) 0 Bgi Error: Graphics not initialized (use initgraph) I have made a program in c++. My program is running fine, but at the end of the program there is a error message on the screen: Bgi Error: Graphics not initialized (use initgraph) My program shows no error message at compile time or at run time. What's this bgi error? How can I correct this? I have initialized the graphics hardware by using the initgraph function on the main segment of my program. I am using Borland Turbo c++ compiler 3.1. [/b] 17-03-2005,01:13 PM #2 theraven View Profile View Forum Posts Visit Homepage Human Spambot Join Date May 2004 Location off to "never ever" land Posts 2,912 Post Thanks / Like Likes (Given) 0 Likes (Received) 0 Dislikes (Given) 0 Dislikes (Received) 0 Code: For some reason initgraph() failed. To find out why, check the return value of graphresult(). For example: #include int main(void) { int gerr; /* graphics error */ int gdriver = DETECT, gmode; /* Initialize graphics using auto-detection and look for the .BGI and .CHR files in the C:\TURBOC directory. */ initgraph(&gdriver, &gmode, "C:\\TURBOC"); if ((gerr = graphresult()) != grOk) { printf("Error : %s\n", grapherrormsg(gerr)); exit(1); } : } source: http://bdn.borland.com/article/0,1410,17916,00.html No Mercy, No Limits. Oobertech.ne