Mail Archives: djgpp/1998/09/20/11:16:08
Ishpeck wrote:
> > How do we write a program that can detect the environment that it's
> > running in (Win95, Win98, Win3x, MSDOS)?
> #ifdef WIN95
> #ifdef DOS
>
> Something like that... I'm not exactly sure about the details though.
I think he meant at run-time, not compile-time.
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
And after it works, you can then tell me your
wrong. You can call a real-mode interrupt from inline assembly, I think it is
safer for some interrupts to use __dpmi_int, but not normal ones (like 0x10).
--
(\/) Endlisnis (\/)
s257m AT unb DOT ca
Endlisnis AT GeoCities DOT com
Endlis AT nbnet DOT nb DOT ca
- Raw text -