|
-
October 22nd, 1999, 11:16 AM
#1
Problem with the dword comparison
Hi, Could you correct the comparison in the if condition.
if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32s))
{
szOsVersion.LoadString(IDS_OSWINDOWS311);
m_EditOsVersion.SetWindowText(szOsVersion);
}
else if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS) && (osversioninfo.dwMinorVersion == 0))
{
szOsVersion.LoadString(IDS_OSWINDOWS95);
m_EditOsVersion.SetWindowText(szOsVersion);
}
else if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_WINDOWS) && (osversioninfo.dwMinorVersion > 0))
{
szOsVersion.LoadString(IDS_OSWINDOWS98);
m_EditOsVersion.SetWindowText(szOsVersion);
}
else if ((osversioninfo.dwPlatformId & VER_PLATFORM_WIN32_NT) == NULL)
{
szOsVersion.LoadString(IDS_OSWINDOWSNT4);
m_EditOsVersion.SetWindowText(szOsVersion);
}
Thanks
olivier
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
|