www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - bios.h

reply "ZaitcevE.V." <Genior km.ru> writes:
Dear Mr.Walter

At compilation of the text:

#include <bios.h>

void
main()
    {
    int a = _PRINTER_WRITE;
    }

The mistake is given out:

   int a = _PRINTER_WRITE;
                         ^
est.c(7) : Error: undefined identifier '_PRINTER_WRITE'
-- errorlevel 1

And in bios.h the constant is determined. Why?
Oct 15 2001
parent "Walter" <walter digitalmars.com> writes:
Likely you need to specify a DOS memory model, since none of the bios
functions work under win32. DOS memory models
are -ms, -mm, -mc, -ml, -mx. -Walter


ZaitcevE.V. wrote in message <9qgjf0$1glq$1 digitaldaemon.com>...
Dear Mr.Walter

At compilation of the text:

#include <bios.h>

void
main()
    {
    int a = _PRINTER_WRITE;
    }

The mistake is given out:

   int a = _PRINTER_WRITE;
                         ^
est.c(7) : Error: undefined identifier '_PRINTER_WRITE'
-- errorlevel 1

And in bios.h the constant is determined. Why?
Oct 16 2001