Quote:
Originally Posted by HarryT
... except that you don't test for Windows versions like that. You do it by calling the "GetVersion" or "GetVersionEx" Windows APIs, and they return Windows versions as a "major" and "minor" version number, not a string. There's no possible way to confuse Windows 95 with Windows 9. Windows 95 returns a version of "4.0", Windows 98 is "4.1".
|
In windows programming, yes, I'd agree.
But there are issues in some languages.
e.g java has a popular function
System.getProperty("os.name")
that does return Windows 95 etc as a string