[ back to toc ]

C

Date: 2002/04/30 15:08

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
Q:
Dear Sir...

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??

Thank you
Wael

A:
Visit the site

http://scriptbasic.com

On the left click on the link called [Download].

Click on the link scriba-v1.0b29-source.zip leading to you

http://scriptbasic.com/download/scriba-v1.0b29-source.zip

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

SetConsoleCursorPosition(hConsole,lp);
SetConsoleTitle(pszT)

and so on.

Regards,
Peter

Q:
Dear Sir...

I am a fraid that there is no file in this name - cio.c
.. help....

Thank you
Wael

A:
Sorry Wael,

this can only lead to a kindergarten quality of arguing. There is a file
in that ZIP archive called 'cio.c' In fact there are 318 files in the
archive one of them is cio.c

Regards,
Peter

[ back to toc ]