i'm using microsoft visual c++ as a compiler in xp
and i'm wondering about the dos.h include file with it.
plenty of graphics tutorials require the use of the
far
keyword
but my compiler gives an error. is there any way arround this?
please help
i'm using microsoft visual c++ as a compiler in xp
and i'm wondering about the dos.h include file with it.
plenty of graphics tutorials require the use of the
far
keyword
but my compiler gives an error. is there any way arround this?
please help
There might be if you perhaps told us how you're using it and the error you're getting.
Do you think that they created the far keyword to do nothing but give you a compiler error? You have to tell people more than "I found a keyword and I'm using it in a program and getting an error. Anyone know why?"
Sent from my iPadŽ
forget it. that file is for 16-bit MS-DOS compilers such as Turbo C and MSVC 1.62C. It is not implemented by any 32-bit compiler because the os will not all normal programs direct access to hardware and io ports. The graphic tutorials you mentioned require (probably) Turbo C or Turbo C++.Originally Posted by myk_raniu
If you want to do graphics in MS-Windows world then you need to use win32 api functions. Good luck.
Last edited by Ancient Dragon; 12-09-2005 at 01:29 PM.
> plenty of graphics tutorials require the use of the
Ah, you mean the fossil remnants from 20 years ago.
> but my compiler gives an error. is there any way arround this?
Yes, join this century.
There's plenty to read on the graphics forum, including links to many graphics libraries which you can download to generate graphics for the modern era.
LibSDL and Allegro are popular choices around these parts.
Later on, most people go with either DirectX or OpenGL.
Haafs Game Engine is pretty good. It provides another layer of abstraction (between you and DirectX) and makes programming games (etc) much simpler:
http://hge.relishgames.com/
Failing that, Open Watcom is a good choice as it can compile to multiple platforms including 16bit DOS, and comes with some pretty neat tools (& IDE).
Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.
- Mike McShaffry