User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the Game Development section within the Software Development category of DaniWeb, a massive community of 427,843 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,778 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Game Development advertiser: Programming Forums
Views: 5424 | Replies: 14
Reply
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Graphics.h turmoil

  #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
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Dec 2004
Location: Devon - UK
Posts: 420
Reputation: 1o0oBhP is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Graphics.h turmoil

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

  #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  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Help Re: Graphics.h turmoil

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

  #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  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Re: Graphics.h turmoil

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

  #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  
Join Date: Dec 2004
Posts: 10
Reputation: jeanatkin is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 0
jeanatkin jeanatkin is offline Offline
Newbie Poster

Re: Graphics.h turmoil

  #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  
Join Date: Dec 2004
Location: Devon - UK
Posts: 420
Reputation: 1o0oBhP is an unknown quantity at this point 
Rep Power: 4
Solved Threads: 6
1o0oBhP's Avatar
1o0oBhP 1o0oBhP is offline Offline
Posting Pro in Training

Re: Graphics.h turmoil

  #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  
Join Date: Nov 2004
Location: Netherlands
Posts: 5,752
Reputation: jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough jwenting is a jewel in the rough 
Rep Power: 18
Solved Threads: 199
Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

  #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  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb Game Development Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Other Threads in the Game Development Forum

All times are GMT -4. The time now is 3:11 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC