![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
hello everyone,
ive been trying to learn c for quite sometime now but i keep running in the same problems when trying to compile older program on older compliers. im running a BORLAND C++ 5.0 Complier on a WINDOWS 98 and i havnt been able to simple graphics on it i keep getting the same error on the GRAPHICS.H file. is there any way to check what kind of graphics card im running and simply change the types here is the exacte problem im running into: #if defined( _Windows ) && !defined (__DPMI16__) && !defined(__DPMI32__) #error BGI graphics not supported under Windows #endif I tryed searching for these files and replacing (_DPMI16_) and (DPMI32_) with (_DPMI16bi_) and (_DPMI32vm_) of which i found instead but that didnt work either. What should i do? Ive also tryed before to run Fractals from a book Programming Fractals in C that had the src files in those old big Floppy instead of the 3.1/4 floppies. so im pretty sure it has to be compalbility issue. Thanks in adavance, EL |
|
|
|
|
|
#2 | ||
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
#if defined( _Windows ) && !defined (__DPMI16__) && !defined(__DPMI32__) #error BGI graphics not supported under Windows #endif Quote:
).EDIT: Welcome btw.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
||
|
|
|
|
|
#3 |
|
Hobbyist Programmer
|
In the compiler, I forget where, but there is a location where you need to check under your project settings to tell Borland to use BGI graphics. Otherwise the compiler will not work with them.
__________________
#programmingforums relay - http://thegupstudio.com/cgi-bin/pforelay.cgi freelance scripts - http://ryanguthrie.com/index.html |
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
Cut the Gordian knot. Get a good, free, modern compiler. Toss ancient learning materials.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#5 |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4
![]() |
I second that. No need to waste time with some old and outdated compiler and library.
__________________
PFO - My daily dose of technology. |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
So if i get Bloodshed C/C++ it will have an updated version of GRAPHICS.H file that can either run under windows or 98
|
|
|
|
|
|
#7 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
98 IS Windows. Dev-Cpp doesn't have a graphics.h, at least in the typical distribution. It isn't a Borland compiler designed to run in a real-mode environment with a MS-DOS or similar operating system. It's just as well, because you almost certainly don't have one of those. If you do, shine it up and put it in a display case and get another system.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#8 |
|
Newbie
Join Date: Apr 2006
Posts: 3
Rep Power: 0
![]() |
So Graphics.H is only for ms-dos versions? Does it only come in Borland compilers? Can i find a updated Graphics.h file on the internet that support current WIndows VGA's?
|
|
|
|
|
|
#9 | |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Quote:
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
|
#10 |
|
Professional Programmer
Join Date: Jun 2005
Location: India, The great.
Posts: 435
Rep Power: 4
![]() |
You can try your luck with Win32 GDI or OpenGL.
__________________
PFO - My daily dose of technology. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|