Click here to Skip to main content
15,901,205 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblem in SHFileOperation Pin
roboo14-May-03 16:07
roboo14-May-03 16:07 
GeneralRe: problem in SHFileOperation Pin
valikac14-May-03 19:53
valikac14-May-03 19:53 
Generalfreshman Pin
linex14-May-03 13:33
linex14-May-03 13:33 
GeneralRe: freshman Pin
John R. Shaw14-May-03 13:51
John R. Shaw14-May-03 13:51 
GeneralRe: freshman Pin
Nitron14-May-03 14:22
Nitron14-May-03 14:22 
GeneralRe: freshman Pin
Gary Kirkham14-May-03 14:43
Gary Kirkham14-May-03 14:43 
GeneralRe: freshman Pin
linex15-May-03 0:46
linex15-May-03 0:46 
GeneralOS detection Pin
elisap14-May-03 13:11
elisap14-May-03 13:11 
Hello,

I'm working on a project that has an About box with a System Info tab. The current code to retrieve Windows version is a few years out of date, and only covers 3.1, 95, 98, and NT; my XP shows up as NT. How can I update this to also correctly show Me, 2000, and XP?

Thanks!

Elisabeth

-----

CString str, str2, str3;

char szBuf[100];
DWORD dwPlatform, dwMajor, dwMinor;
m_sysinfo.GetWindowsVersion( &dwPlatform, &dwMajor, &dwMinor );

str = "";
switch( dwPlatform )
{
case VER_PLATFORM_WIN32s:
str += "Win32s on Windows 3.1 ";
break;

case VER_PLATFORM_WIN32_WINDOWS:
str += "Windows ";
if( dwMinor == 0 )
{
str += "95 ";
BOOL bVal = 0;
m_sysinfo.IsOSR2( &bVal );
if( bVal )
{
str += "OSR2 ";
}
}
else if( dwMinor == 1 )
str += "98 ";
break;

case VER_PLATFORM_WIN32_NT:
{
str += "Windows NT ";
BOOL bVal = 0;
m_sysinfo.IsNTServer( &bVal );
if( bVal )
{
str += "Server ";
}
}
break;

default:
str += "Unknown ";
}

GeneralRe: OS detection Pin
Michael Dunn14-May-03 13:34
sitebuilderMichael Dunn14-May-03 13:34 
GeneralRe: OS detection Pin
Trollslayer15-May-03 1:35
mentorTrollslayer15-May-03 1:35 
GeneralRe: OS detection Pin
John M. Drescher14-May-03 13:54
John M. Drescher14-May-03 13:54 
GeneralMFC in VS.NET 2003 Pin
paulb14-May-03 13:09
paulb14-May-03 13:09 
GeneralRe: MFC in VS.NET 2003 Pin
Wes Aday14-May-03 13:41
professionalWes Aday14-May-03 13:41 
Generalcontrol styles Pin
emrosa14-May-03 13:05
emrosa14-May-03 13:05 
GeneralRe: control styles Pin
John R. Shaw14-May-03 13:31
John R. Shaw14-May-03 13:31 
GeneralRe: control styles Pin
Renjith Ramachandran15-May-03 5:10
Renjith Ramachandran15-May-03 5:10 
GeneralWSAAccept query Pin
noxon14-May-03 13:03
noxon14-May-03 13:03 
GeneralRe: WSAAccept query Pin
Renjith Ramachandran15-May-03 5:19
Renjith Ramachandran15-May-03 5:19 
GeneralDrawing, and text with an angle Pin
Jorgen E.14-May-03 13:00
Jorgen E.14-May-03 13:00 
GeneralRe: Drawing, and text with an angle Pin
J. Dunlap14-May-03 13:05
J. Dunlap14-May-03 13:05 
Generalmessage handler Pin
K. Shaffer14-May-03 11:11
K. Shaffer14-May-03 11:11 
GeneralRe: message handler Pin
Neville Franks14-May-03 11:26
Neville Franks14-May-03 11:26 
GeneralRe: message handler Pin
Toni7815-May-03 5:43
Toni7815-May-03 5:43 
GeneralNovell & NT Service Pin
Ed K14-May-03 10:41
Ed K14-May-03 10:41 
QuestionHow to automatically perform function when dialog appears? Pin
modernrelativist14-May-03 10:35
modernrelativist14-May-03 10:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.