943,952 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 27584
  • C RSS
You are currently viewing page 1 of this multi-page discussion thread
Apr 21st, 2007
-1

BGI Error:- Graphics not Initialized(Use Initgraph)

Expand Post »
Hi all,

I have already used InitGraph and have given the path(C:\\TC\BGI) in Initgraph and checked the Graphics option in Linker Options. Still Iam getting this error. I want a solution. Can somebody pls help me. Its urgent.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pvbhargav is offline Offline
2 posts
since Apr 2007
Apr 22nd, 2007
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

A wild stab in the dark suggests that you need to double up the second \ in your pathname, so

C:\\TC\\BGI

But since you've only paraphrased the problem, who knows whether that typo exists in your actual code, or whether there is some other problem you haven't bothered to mention. Post actual code if you want a fast accurate response.


> Can somebody pls help me.
http://www.catb.org/~esr/faqs/smart-...ons.html#prune
http://www.catb.org/~esr/faqs/smart-...html#writewell

> Its urgent.
http://www.catb.org/~esr/faqs/smart-...ns.html#urgent
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Apr 22nd, 2007
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

of course the BGI is 20+ year old technology first developed for DOS 3 and never meant for use under Windows so it's quite possible even if you called the method that it failed and you didn't properly handle that failure.
Team Colleague
Reputation Points: 1658
Solved Threads: 331
duckman
jwenting is offline Offline
7,719 posts
since Nov 2004
Jun 3rd, 2007
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

Hi all,

The option is working in my office while it is not working in my home system. Pls help me fix this problem.

Thanks
Reputation Points: 10
Solved Threads: 0
Newbie Poster
pvbhargav is offline Offline
2 posts
since Apr 2007
Jun 3rd, 2007
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

Go to c:\tc and make sure there is a folder named "BGI" and that the drivers are in it.
Reputation Points: 78
Solved Threads: 22
Posting Whiz
Colin Mac is offline Offline
327 posts
since Sep 2006
Sep 22nd, 2009
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

Well , Using the same ancient Turbo C++ 3.0 in school, i ran into the same problem. The two lines of graphics above should be :
Assuming that you installed Turbo C to C:\TC

  1. int gd=DETECT,gm;
  2. initgraph(&gd,&gm,"C:\\TC\\BGI");
Obviously include the graphics.h.
If it still doesnt work , Press CTRL-F , then D.
(Dos Shell from the Compiler File Menu).
Write :

  1. C:\TC\BGI
  2. exit
It should work now. If it still doesnt work , im pretty sure that its a corrupted installation or you are missing the *.BGI Files.
Also , I think you'd have done this , but dont forget to enable the Graphics Libraries in Options > Linker > Libraries.
Last edited by ashmew2; Sep 22nd, 2009 at 3:27 am.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
ashmew2 is offline Offline
3 posts
since Sep 2009
Sep 22nd, 2009
0

Re: BGI Error:- Graphics not Initialized(Use Initgraph)

You are required to check whether the compiler is installed in c drive or not
if it is installed in other drive u must specify the program as
for eg. it is installed in d drive
  1. d:\\tc\\bgi
and also change the path in the compilers directory
Reputation Points: 6
Solved Threads: 9
Junior Poster in Training
ajay.krish123 is offline Offline
90 posts
since Nov 2008
Jan 25th, 2010
-2
Re: BGI Error:- Graphics not Initialized(Use Initgraph)
thanks guys mah first day on this website and i got the answer for mah question.....the same of bgi error
Reputation Points: 10
Solved Threads: 0
Newbie Poster
goldy007 is offline Offline
1 posts
since Jan 2010
Jul 8th, 2010
0
Re: BGI Error:- Graphics not Initialized(Use Initgraph)
just copy the file egavga.bgi from your /bgi folder and paste it in your /bin folder.
You should'nt be getting the error any more.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
avi4ash is offline Offline
1 posts
since Jul 2010
Jul 12th, 2010
0
Re: BGI Error:- Graphics not Initialized(Use Initgraph)
Thank u guys....me too got d same error nd resolved it
Reputation Points: 10
Solved Threads: 0
Newbie Poster
indrapriya is offline Offline
2 posts
since Jul 2010
This thread is currently closed and is not accepting any new replies.
Previous Thread in C Forum Timeline: Assembler
Next Thread in C Forum Timeline: What are the advantages of double pointer ? and I know some what about that





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC