Graphics.h turmoil

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

Re: Graphics.h turmoil

 
0
  #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 Quick reply to this message  
Join Date: Sep 2004
Posts: 8,313
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 824
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Code Goddess

Re: Graphics.h turmoil

 
0
  #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.
In case you were wondering, yes, I do hate you.
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,482
Reputation: jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all jwenting is a name known to all 
Solved Threads: 236
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: Graphics.h turmoil

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


Views: 7316 | Replies: 14
Thread Tools Search this Thread



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

©2003 - 2010 DaniWeb® LLC