How I can make a DOS system calls in C languge using the windows
invronment (WIN2000) with Visual C++ compiler??...
I am trying to make Dos calls like:
char row, column;
union REGS inregs;
union REGS outregs;
inregs.h.ah = 2; /* service 2 - position the cursor */
inregs.h.dh = row;
inregs.h.dl = column;
inregs.h.bh = 0;
int86(0x10,&inregs,&outregs); /* interrupt 10 */
The compiler is giving me an error here since he does not know this calls
of DOS. every compiler has different calls to DOS. What I have to do??
download the source and look the file
to see how I implemented this.
I am sorry that I could not find the exact file that you told me. Can you
explain more how can I find it and where??
Visit the site
On the left click on the link called [Download].
Click on the link scriba-v1.0b29-source.zip leading to you
download the file and open it using WinZIP.
Seek the file named cio.c
You will see how it uses the Windows 2000 system functions, like
and so on.
[ back to toc ]