graphics.h with Borland C++ compiler

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Sep 2006
Posts: 3
Reputation: Akks_3 is an unknown quantity at this point 
Solved Threads: 0
Akks_3 Akks_3 is offline Offline
Newbie Poster

graphics.h with Borland C++ compiler

 
0
  #1
Sep 14th, 2006
hi I have a Borland C++ 5.5 command compiler. I needed to plot a graph using a C++ program. However, I discovered that there were'nt any graphics library (pls correct me if I'am wrong). So I copied graphics.h and BGI files from a Turbo C++ compiler.
But I can't still run any graphics based functions. There are errors of a 'far' variable like:
Size of 'far' is unknown,
Time is running out as my assignment date is due. If the Turbo C++ graphics.h is incompatible then how can I plot a graph in BCC32. Please help!
Reply With Quote Quick reply to this message  
Join Date: Jun 2006
Posts: 7,600
Reputation: ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of ~s.o.s~ has much to be proud of 
Solved Threads: 462
Super Moderator
Featured Poster
~s.o.s~'s Avatar
~s.o.s~ ~s.o.s~ is offline Offline
Failure as a human

Re: graphics.h with Borland C++ compiler

 
2
  #2
Sep 14th, 2006
Why not just try to complete the assignment in Turbo C. In the help section of turbo C there is a small tutorial which explains how to setup graphics in Turbo C along with a small example.

And just copy pasting the files wont do the job coz Turbo C is not the same as Borland C++, i hope you get the point.

Maybe you can look here
http://www.daniweb.com/techtalkforums/thread11617.html
and
http://bdn.borland.com/article/16170

Hope it helped, bye.
I don't accept change; I don't deserve to live.
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 3
Reputation: Akks_3 is an unknown quantity at this point 
Solved Threads: 0
Akks_3 Akks_3 is offline Offline
Newbie Poster

Re: graphics.h with Borland C++ compiler

 
1
  #3
Sep 14th, 2006
hi!
The point is, it will involve a huge overhead to switch to TC (as I have'nt installed it on my notebook). I just needed to plot a histogram on a graph in bcc. will WinGDI help. If so, kindly send me a rough code.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 251
Reputation: dwks has a spectacular aura about dwks has a spectacular aura about 
Solved Threads: 25
dwks's Avatar
dwks dwks is offline Offline
Posting Whiz in Training

Re: graphics.h with Borland C++ compiler

 
2
  #4
Sep 14th, 2006
Originally Posted by Akks_3 View Post
hi!
The point is, it will involve a huge overhead to switch to TC (as I have'nt installed it on my notebook). I just needed to plot a histogram on a graph in bcc. will WinGDI help. If so, kindly send me a rough code.
I imagine the overhead would not be great (unless your program is written in C++); TC fits on four floppy disks and it runs on an XT computer. But switching to an old compiler just so you can use its outdated graphics library doesn't seem like a good idea.

Try searching google for a graphics library that works with your compiler; one such one is http://dislin-for-borland-c-5-5.mpi-....qarchive.org/. (Nice name, eh?) Or use Windows graphics if your compiler supports it.
dwk

Seek and ye shall find.

"Only those who will risk going too far can possibly find out how far one can go."
-- TS Eliot.

"I have not failed. I've just found 10,000 ways that won't work."
-- Thomas Alva Edison

"The only real mistake is the one from which we learn nothing."
-- John Powell
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 1
Reputation: alexwinger is an unknown quantity at this point 
Solved Threads: 0
alexwinger alexwinger is offline Offline
Newbie Poster

Re: graphics.h with Borland C++ compiler

 
1
  #5
Sep 25th, 2006
Originally Posted by Akks_3 View Post
hi I have a Borland C++ 5.5 command compiler. I needed to plot a graph using a C++ program. However, I discovered that there were'nt any graphics library (pls correct me if I'am wrong). So I copied graphics.h and BGI files from a Turbo C++ compiler.
But I can't still run any graphics based functions. There are errors of a 'far' variable like:
Size of 'far' is unknown,
Time is running out as my assignment date is due. If the Turbo C++ graphics.h is incompatible then how can I plot a graph in BCC32. Please help!

The main problem is that turbo c++ is for using ms-dos or win3.1.
So that library programs graphics only for dos or win3.1 depending on your version.

So you have to use a library in order to use graphics in win32, this is a total new topic on how to do that, but i can recommend you Allegro, because it can use simplified functions.

a url of this library is www.allegro.cc and good luck in your proyect.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC