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 426,790 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 1,717 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: 5415 | 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

Help Re: Graphics.h turmoil

  #11  
Dec 26th, 2004
Thanks, but either I'm just stupid, or I'm still wading.
	int graphdriver = VGA;
   int graphmode = VGAHI;
   int graphicerr = 0;
   //Directory for BGI Drivers
   char driverpath[]="C:\BC5\BGI";
   initgraph(&graphdriver, &graphmode, driverpath);
   graphicerr = graphresult();
   if(graphicerr!=gr0k)
   {
   	status("Error in Graphics Display. Consult your computer technician for details.");
      exit(0);
   }

Here's the above code I'm trying to use, but it doesn't seem to be working. How do I get to compile it in DOS?
I'm really sorry for taking up your time.
status() is a function, by the way, which accepts strings.
Hope you had a Merry Christmas!
Me. :mrgreen: :rolleyes: :!:
Reply With Quote  
Join Date: Sep 2004
Posts: 6,325
Reputation: Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of Narue has much to be proud of 
Rep Power: 28
Solved Threads: 458
Super Moderator
Narue's Avatar
Narue Narue is offline Offline
Expert Meanie

Re: Graphics.h turmoil

  #12  
Dec 26th, 2004
>How do I get to compile it in DOS?
Are you using DOS? Or are you one of the many ignorant people in the world who think that the Windows command prompt is DOS? You really are behind the times by many years. There are many superior alternatives to BGI these days.
I'm a programmer. My attitude starts with arrogance, holds steady at condescension, and ends with hostility. Get used to it.
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

  #13  
Dec 26th, 2004
and hardcoding directories into the exe...

He's just hardheaded in the extreme I think, refusing to listen to any advise that tells him he's not going to get what he wants.
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

  #14  
Dec 26th, 2004
Have you tried DJGPP????

1) its free
2) it has a grahics lib
3) its 16 bit DOS
4) almost EVERY tutorial on 16 bit gfx is INLINE ASSEMBLY so you might as well get DJGPP so you can compile the 16 bit asm cleanly.
http://sales.carina-e.com

no www
no nonsense

coming soon to a pc near you! :cool:
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

  #15  
Dec 29th, 2004
I'm not hardheaded, I'm just plain stupid.
Thanks for the replies though. I quit Borland. Working with Turbo. It seems to work now.
I hereby deem this forum closed.
Thanks again!
Cheerio, Me.
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 6:59 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC