944,031 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 19584
  • C++ RSS
Sep 14th, 2006
0

graphics.h with Borland C++ compiler

Expand 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!
Similar Threads
Reputation Points: 17
Solved Threads: 0
Newbie Poster
Akks_3 is offline Offline
3 posts
since Sep 2006
Sep 14th, 2006
2

Re: graphics.h with Borland C++ compiler

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.
Super Moderator
Featured Poster
Reputation Points: 3241
Solved Threads: 720
Failure as a human
~s.o.s~ is offline Offline
8,873 posts
since Jun 2006
Sep 14th, 2006
1

Re: graphics.h with Borland C++ compiler

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.
Reputation Points: 17
Solved Threads: 0
Newbie Poster
Akks_3 is offline Offline
3 posts
since Sep 2006
Sep 14th, 2006
2

Re: graphics.h with Borland C++ compiler

Click to Expand / Collapse  Quote originally posted by Akks_3 ...
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.
Reputation Points: 185
Solved Threads: 28
Posting Whiz in Training
dwks is offline Offline
269 posts
since Nov 2005
Sep 25th, 2006
1

Re: graphics.h with Borland C++ compiler

Click to Expand / Collapse  Quote originally posted by Akks_3 ...
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.
Reputation Points: 14
Solved Threads: 0
Newbie Poster
alexwinger is offline Offline
1 posts
since Sep 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Help me simplify this program please!
Next Thread in C++ Forum Timeline: Newbie in need of help!!!





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC