Graphics.h turmoil

Please support our Game Development advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Graphics.h turmoil

 
0
  #1
Dec 23rd, 2004
Excuse me, but I'm a newbie.
I have 2 years worth of learning in Borland C++ 5.0 and know a touch of programming in C++ and OOP Programming, as well as file handling.
My main concern in starting this thread, is to humbly ask anyone, to give (PLEASE!) a step-by-step procedure on how to combat the Error: BGI Directive not supported under Windows error. This is with regard to a project for school, and I urgently need to know how to compile with the #^#^$ graphics.h file, so I can proceed with further debugging my code. I'll be grateful if anyone will.
Best wishes,
Me. :mrgreen: :o
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Graphics.h turmoil

 
0
  #2
Dec 23rd, 2004
Error: BGI Directive not supported under Windows
seems self-explanetory (sp): unless you compile it as 16 bit DOS or equivalent it isnt going to work. This is a common error in graphics code so dont worry about it! it wont work in a 32 bit program (windows for example) so you will have to use the Windows GUI code or OpenGL/DirectX or any 32 bit graphics library.
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

 
0
  #3
Dec 23rd, 2004
Wow, you've been using Borland C++ for 2 years and you still have only "a touch of programming"?
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Re: Graphics.h turmoil

 
0
  #4
Dec 24th, 2004
Wow, you've been using Borland C++ for 2 years and you still have only "a touch of programming"?
Uh-huh, sorry. You know what they say, programming is a big ocean. You might say I've learned quite a bit(not a touch, if you find that offensive, woah :o ), enough to help me wade through.
This is a common error in graphics code so dont worry about it! it wont work in a 32 bit program (windows for example) so you will have to use the Windows GUI code or OpenGL/DirectX or any 32 bit graphics library.
OK, I've practically seen this on every website, but could someone please give me step-by-step instructions on how to do so, 'coz the 'every website' don't give 'em, and I'm only conversant with the type-compile-execute process, and nothing whatsoever in between (changing linker options, library options, I'm no good at, 'coz I don't know what they are )
Immensely grateful for any help.
Me :mrgreen: :rolleyes:
Oh, and by the way, I use Borland C++ 5.0, NOT the Turbo version, and I work in Windows XP.
Thanks again.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

 
0
  #5
Dec 24th, 2004
You may first want to look in the manuals for BC5. They're quite complete and contain a lot of information on how to actually use the environment and set all the options...

There's way too much to OpenGL and DirectX to explain it all here, pick up a good tutorial (I love books ) and work through that. Libraries have been written full on the subject but you will want to start small.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Re: Graphics.h turmoil

 
0
  #6
Dec 24th, 2004
Well...gee..uh...thanks...that flew right over my head. :!:
In a previous (though locked) thread (yup...here), one of the guys said "Change the linked options to dos". Now I assume that's for Turbo C++.
I repeat my question, could someone, please, try and break down in English, the step-by-step procedure to make BGI Graphics supportable in Windows? Please? Could someone give me the Windows equivalent of the above tip?
Thanks for your quick replies though. I appreciate it.
Have yourself a merry little Christmas.
Me. :mrgreen: :rolleyes: :p (gotta love those emoticons)
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

 
0
  #7
Dec 24th, 2004
if you had read that other thread you'd have understood that you can NOT use BGI graphics under Windows.
It's specifically DOS ONLY.
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Re: Graphics.h turmoil

 
0
  #8
Dec 24th, 2004
It just turned Christmas half-an-hour ago!
HAPPY LORD JESUS' 2004th BIRTHDAY ANNIVERSARY!
HAPPY KRIS KRINGLE DAY!


OK, I'm getting desperate. Thanks for your help, jwenting, but could you (or someone) please tell me how to compile-edit-execute in Borland C++ in DOS Mode? I mean, do you have to use the Command Prompt, or something? How do you 'change the linker options to DOS' in Windows XP, when there's no Borland C++ equivalent to do it? Please help. Need help. The bgidemo.c file works on my compu, why not the rest I'm trying to make?


Keep in mind, I'm a newbie.


Once again, HAPPY WEEK BEFORE NEW YEAR'S!
Me :mrgreen: :rolleyes:
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 445
Reputation: 1o0oBhP is an unknown quantity at this point 
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Graphics.h turmoil

 
0
  #9
Dec 24th, 2004
have a look in the manual. It should be an option (command line) for the LINKER / COMPILER. something like a 16bit or a DOS flag. DJGPP compiles 16 bit code perfectly, although you would have to use THEIR graphics lib, which i think it not too hard
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

 
0
  #10
Dec 25th, 2004
BC5 can compile 16 bit Windows programs just fine. Not sure about DOS programs though.
16 bit Windows doesn't support BGI.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Game Development Forum
Thread Tools Search this Thread



Tag cloud for Game Development
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC