Hello, I use Borland C++ 5.0. Everytime I include graphics.h, I get a compile time error which says "BGI graphics not supported on windows." How can this be?
Hello, I use Borland C++ 5.0. Everytime I include graphics.h, I get a compile time error which says "BGI graphics not supported on windows." How can this be?
graphics.h is a dos graphics include. In windows you use the GDI for your graphics. It's kinda fundamental for windows to function the way it does.
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
But I want to use graphics in dos. Yet, I get this error. What must I do?
oh you're talking about a console app. well console is not truly the same as dos. I can tell you that much. I don't know how Borland chose to handle that. If it is a strictly DOS compiler then I would think it would work but if it is a "console" compiler as VC++ is then you're probably stuck. Why do you want to code graphics for dos on a windows system anyway?
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
Yes, I think it is a console compiler. Perhaps you could give me an example of a DOS compiler, and where I can download it?
Moreover, if this version of Borland C++ is meant to run on windows, why would they supply a header file which will not run on windows?
dunno really, maybe someone else can take over here. I'm really a windows programmer and haven't done much in the way of DOS in a long time. Anyone?
"You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]