c++.dos.32-bits - bios.h
- "ZaitcevE.V." <Genior km.ru> Oct 15 2001
- "Walter" <walter digitalmars.com> Oct 16 2001
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
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








"Walter" <walter digitalmars.com>