Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

running platform?

0 views
Skip to first unread message

Johan Videbeck

unread,
Mar 18, 1999, 3:00:00 AM3/18/99
to
How do i with c++ find out on which platform the file is running? i want

to find out if the file is running in
win95/98 or if the system is NT.. ?

Johan


hz

unread,
Mar 18, 1999, 3:00:00 AM3/18/99
to
On Thu, 18 Mar 1999 11:16:53 +0000, Johan Videbeck <over...@home.se>
wrote:

>How do i with c++ find out on which platform the file is running? i want
>
>to find out if the file is running in
>win95/98 or if the system is NT.. ?

C++ as language has no information about the operating system.

The Win32 API however has an easy to use function called
GetVersionEx() which retrieves information about the version of the
operating system that is currently running.


Hens Zimmerman

0 new messages