Emmanuel Delahaye wrote:
[...]
but i have
a problem. At the moment i use turboc++lite and i donīt have reply
when i execute the question code. Only a black screen! Anyone help me?
Whatīs is wrong? This code return the DOS version.
Do you have a DOS system ? Windows/XP is NOT a DOS system.
Note that XP will run 16-bit DOS executables, and emulate a 5.0 MS-DOS
system.
[...] This only works in real mode (Pure MS-DOS) or on the Windows VM (Virtual
Machine) found on DOS/Windows (3.x, 9x etc.).
On a modern OS like NT or XP, such a call will invoke an undefined
behaviour.
Actually, XP includes a DOS emulator, and the above is well-defined
when run on XP. (And NT, 2000, and 2003 as well.)
[...]
Of course, none of this makes it topical for c.l.c, so I'm wondering
why I'm posting this.
Well, it could serve as an example of why you should post in the
correct newsgroup, so you'll be more likely to get information from
people who are familiar with the platform.
--
+-------------------------+--------------------+-----------------------------+
| Kenneth J. Brody |
www.hvcomputer.com | |
| kenbrody/at\spamcop.net |
www.fptech.com | #include <std_disclaimer.h> |
+-------------------------+--------------------+-----------------------------+
Don't e-mail me at: <mailto:Th*************@gmail.com>