I have M.visual C++ 6.0 compiler. I use dos.h in any program, i get some error as REGS unidentified structer.
How can i use dos.h? Can you help me?
A part of program :
union REGS r;
r.h.ah = 0;
r.h.al = 0x3;
int86(0x10, &r, &r);
Regrads,
I have M.visual C++ 6.0 compiler. I use dos.h in any program, i get some error as REGS unidentified structer.
How can i use dos.h? Can you help me?
A part of program :
union REGS r;
r.h.ah = 0;
r.h.al = 0x3;
int86(0x10, &r, &r);
Regrads,
MSVC 6 is a Win32 compiler and won't let you compile DOS programs.
What's a dos?
MS-DOSOriginally Posted by sand_man
> How can i use dos.h? Can you help me?
Either get an old compiler (not recommended), or learn a new API, one which is more appropriate to the OS and compiler you're actually using.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Hi,
In fact, i want to know drawing a line, putting pixel etc. on monitor. how can i do this?
Regrads,
*Slaps Quantum1024
Sorry if that wasn't sarcastic enough for you
haha Quantum1024 slaps himself
I think you could use RHIDE, which is a freeware compiler and has DOS.H.
RHIDE is an IDE, you are thinking of DJGPP wich includes RHIDEOriginally Posted by dwks
Sorry, yes, I meant DJGPP. I just call it RHIDE.
> In fact, i want to know drawing a line, putting pixel etc. on monitor. how can i do this?
You use a graphics library.
Which graphics library you use is up to you, but things are considerably more complicated than the old DOS days of the likes of BGI from Borland say.
Perhaps the simplest is http://www.libsdl.org/index.php
Be sure to read the FAQ on how to compile with VC++
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
What you should do is download Dev-C and copy ming32 (looks like ming32), out of the dev-c/include, and then put that into your msc6/include, and the dos.h will work.
I think you need a .lib file too, and not just a .h file. The .h file just contains prototypes, and not code.
Does Dev-C++ have dos.h? I didn't know that.
Since each compiler has different header files, library files, object file formats blah blah blah, even if that happens to work for you, it's far from being good advice.
Just let go of your old DOS OS and move with the times to something more modern.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.