Q:
Hi...
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:
pos_cursor(row,column)
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??
Thank you
Wael
A:
Go to
http://scriptbasic.com
download the source and look the file
\source\extensions\cio\cio.c
to see how I implemented this.
regards,
Peter
[ back to toc ]