Click here to Skip to main content
16,008,490 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A pointer delimma (requesting help from pointer/dynamic array gurus) Pin
palbano9-Jul-04 8:13
palbano9-Jul-04 8:13 
GeneralRe: A pointer delimma (requesting help from pointer/dynamic array gurus) Pin
NTense10-Jul-04 7:22
NTense10-Jul-04 7:22 
GeneralTesting which OS I'm on Pin
Timothy Grabrian9-Jul-04 6:15
professionalTimothy Grabrian9-Jul-04 6:15 
GeneralRe: Testing which OS I'm on Pin
David Crow9-Jul-04 7:01
David Crow9-Jul-04 7:01 
GeneralRe: Testing which OS I'm on Pin
palbano9-Jul-04 7:04
palbano9-Jul-04 7:04 
GeneralRe: Testing which OS I'm on Pin
jmkhael9-Jul-04 7:05
jmkhael9-Jul-04 7:05 
GeneralRe: Testing which OS I'm on Pin
Michael Dunn9-Jul-04 10:05
sitebuilderMichael Dunn9-Jul-04 10:05 
GeneralRe: Testing which OS I'm on Pin
ThatsAlok9-Jul-04 19:25
ThatsAlok9-Jul-04 19:25 
here you can use my code for this
//structure
struct NmpWindowVersion
{
public:
CString WindowName;//name of windows
int Plateform;//0 stand for single user and 1 stand for multi user
CString WindowsVersion;// contain the iformation abbt service pack etc
CString BuildNumber;
};
////function
int MeCheckVersionInfo(NmpWindowVersion &StructVar)
{
OSVERSIONINFO info;
info.dwOSVersionInfoSize=sizeof(OSVERSIONINFO);
GetVersionEx(&info);
int nMajor,nMinor;
CString BuildStr;

//getting Verion nme
switch (info.dwMajorVersion)
{
case 3: StructVar.WindowName="Windows NT 3.51";
nMajor=3;
nMinor=51;

break;
case 4: switch(info.dwMinorVersion)
{
case 0:
if(info.dwPlatformId==VER_PLATFORM_WIN32_WINDOWS)
StructVar.WindowName="Windows 95";
else
StructVar.WindowName="Windows NT 4.0";

nMajor=4;
nMinor=0;

break;


case 10: StructVar.WindowName="Windows 98 ";
nMajor=4;
nMinor=10;

break;

case 90: StructVar.WindowName="Windows Me ";
nMajor=4;
nMinor=90;

break;
}
break;

case 5: switch(info.dwMinorVersion)
{
case 0: StructVar.WindowName="Windows 2000";
nMajor=5;
nMinor=0;

break;
case 1: StructVar.WindowName="Windows XP";
nMajor=5;
nMinor=1;

break;
case 2: StructVar.WindowName="Windows Server 2003 family 2";

nMajor=5;
nMinor=2;

break;

}
break;

}

////getting Plateform ID
switch(info.dwPlatformId)
{
case VER_PLATFORM_WIN32_WINDOWS:StructVar.Plateform=0; break;
case VER_PLATFORM_WIN32_NT :StructVar.Plateform=1; break;
}

///getting Platform version

StructVar.WindowsVersion=(CString)info.szCSDVersion;


////getting the build number
BuildStr.Format("%d.%d.%d",nMajor,nMinor,LOWORD(info.dwBuildNumber));
StructVar.BuildNumber=BuildStr;
return 0;
}



-----------------------------
"I Think It will Work"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
Generaladding help to application Pin
BlackDice9-Jul-04 6:10
BlackDice9-Jul-04 6:10 
GeneralRe: adding help to application Pin
David Crow9-Jul-04 7:03
David Crow9-Jul-04 7:03 
GeneralRe: adding help to application Pin
BlackDice9-Jul-04 7:11
BlackDice9-Jul-04 7:11 
Generalfullscreening a dialog Pin
locoone9-Jul-04 4:47
locoone9-Jul-04 4:47 
GeneralRe: fullscreening a dialog Pin
Timothy Grabrian9-Jul-04 6:02
professionalTimothy Grabrian9-Jul-04 6:02 
GeneralCPtrList Pin
Mahendra_7869-Jul-04 4:46
Mahendra_7869-Jul-04 4:46 
GeneralRe: CPtrList Pin
Navin9-Jul-04 5:10
Navin9-Jul-04 5:10 
GeneralRe: CPtrList Pin
Mahendra_7869-Jul-04 6:12
Mahendra_7869-Jul-04 6:12 
GeneralRe: CPtrList Pin
Gary R. Wheeler10-Jul-04 2:38
Gary R. Wheeler10-Jul-04 2:38 
GeneralListBox activex Pin
Peter Toss9-Jul-04 4:16
sussPeter Toss9-Jul-04 4:16 
GeneralRe: ListBox activex Pin
Jeffrey Walton14-Jul-04 12:59
Jeffrey Walton14-Jul-04 12:59 
GeneralSimulation:- Rings moving out from points with some delay & store sim. to movie file Pin
JHAKAS9-Jul-04 4:04
JHAKAS9-Jul-04 4:04 
General"calling" a dialog box Pin
Keck9-Jul-04 4:04
Keck9-Jul-04 4:04 
GeneralRe: "calling" a dialog box Pin
David Crow9-Jul-04 4:57
David Crow9-Jul-04 4:57 
GeneralRe: "calling" a dialog box Pin
Maximilien9-Jul-04 5:36
Maximilien9-Jul-04 5:36 
Generalscript on this page .. Pin
Marian779-Jul-04 3:10
Marian779-Jul-04 3:10 
QuestionHow to Create SetUP of my Application Pin
Zeeshan Bilal9-Jul-04 1:39
Zeeshan Bilal9-Jul-04 1:39 

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.