|
From: frank a. <fr...@pl...> - 2002-10-07 17:50:03
|
Fabio Tassinari wrote:
> Hi,
>
> How can I compile a program that uses the int86x(..)
> function.
> For example:
>
> ...
> union REGS inregs;
> union REGS outregs;
> ...
> void api_sleep(int ms)
> {
> inregs.x.ax = 0x0900;
> inregs.x.bx = ms;
> int86x(TCP_INT, &inregs, &outregs, &segregs);
> }
> ...
>
You could define the union yourself. That would not help, because there is
no int86 in the libraries that come with dev-cpp.
This used to be in dos.h, but is no longer there. One solution is to use
DJGPP, but then you get no Windows functions.
The easy way out is to use Sleep(DWORD milliseconds) as specified in
winbase.h
Frank Abbing
|