|
-
October 26th, 1999, 05:32 AM
#1
If case for getting the OSname
Hi,
Can you correct the case in the if statement ?
Thanks
Olivier
//Get the OS Version
OSVERSIONINFO osversioninfo;
GetVersionEx(&osversioninfo);
CString szOsVersion;
if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32s) == NULL)
{
szOsVersion.LoadString(IDS_OSWINDOWS311);
m_EditOsVersion.SetWindowText(szOsVersion);
}
if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS) == NULL && (osversioninfo.dwMinorVersion == 0))
{
szOsVersion.LoadString(IDS_OSWINDOWS95);
m_EditOsVersion.SetWindowText(szOsVersion);
}
if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS) == NULL && (osversioninfo.dwMinorVersion > 0))
{
szOsVersion.LoadString(IDS_OSWINDOWS98);
m_EditOsVersion.SetWindowText(szOsVersion);
}
if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_NT) == NULL)
{
szOsVersion.LoadString(IDS_OSWINDOWSNT4);
m_EditOsVersion.SetWindowText(szOsVersion);
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|