Click here to Skip to main content
15,846,009 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalproblem in SHFileOperation Pin
roboo14-May-03 17:07
roboo14-May-03 17:07 
GeneralRe: problem in SHFileOperation Pin
valikac14-May-03 20:53
valikac14-May-03 20:53 
Generalfreshman Pin
linex14-May-03 14:33
linex14-May-03 14:33 
GeneralRe: freshman Pin
John R. Shaw14-May-03 14:51
John R. Shaw14-May-03 14:51 
GeneralRe: freshman Pin
Nitron14-May-03 15:22
Nitron14-May-03 15:22 
GeneralRe: freshman Pin
Gary Kirkham14-May-03 15:43
Gary Kirkham14-May-03 15:43 
GeneralRe: freshman Pin
linex15-May-03 1:46
linex15-May-03 1:46 
GeneralOS detection Pin
elisap14-May-03 14:11
elisap14-May-03 14: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 14:34
sitebuilderMichael Dunn14-May-03 14:34 
GeneralRe: OS detection Pin
Trollslayer15-May-03 2:35
mentorTrollslayer15-May-03 2:35 
GeneralRe: OS detection Pin
John M. Drescher14-May-03 14:54
John M. Drescher14-May-03 14:54 
GeneralMFC in VS.NET 2003 Pin
paulb14-May-03 14:09
paulb14-May-03 14:09 
GeneralRe: MFC in VS.NET 2003 Pin
Wes Aday14-May-03 14:41
professionalWes Aday14-May-03 14:41 
Generalcontrol styles Pin
emrosa14-May-03 14:05
emrosa14-May-03 14:05 
GeneralRe: control styles Pin
John R. Shaw14-May-03 14:31
John R. Shaw14-May-03 14:31 
GeneralRe: control styles Pin
Renjith Ramachandran15-May-03 6:10
Renjith Ramachandran15-May-03 6:10 
GeneralWSAAccept query Pin
noxon14-May-03 14:03
noxon14-May-03 14:03 
GeneralRe: WSAAccept query Pin
Renjith Ramachandran15-May-03 6:19
Renjith Ramachandran15-May-03 6:19 
GeneralDrawing, and text with an angle Pin
Jorgen E.14-May-03 14:00
Jorgen E.14-May-03 14:00 
GeneralRe: Drawing, and text with an angle Pin
J. Dunlap14-May-03 14:05
J. Dunlap14-May-03 14:05 
Generalmessage handler Pin
K. Shaffer14-May-03 12:11
K. Shaffer14-May-03 12:11 
GeneralRe: message handler Pin
Neville Franks14-May-03 12:26
Neville Franks14-May-03 12:26 
GeneralRe: message handler Pin
Toni7815-May-03 6:43
Toni7815-May-03 6:43 
GeneralNovell & NT Service Pin
Ed K14-May-03 11:41
Ed K14-May-03 11:41 
QuestionHow to automatically perform function when dialog appears? Pin
modernrelativist14-May-03 11:35
modernrelativist14-May-03 11: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.