Finding the windows version...

This is a discussion on Finding the windows version... within the Windows Programming forums, part of the Platform Specific Boards category; Hey guys, I have searched everywhere, and I can't find a good way to identify the windows version. Just to ...

  1. #1
    Registered User
    Join Date
    Jun 2004
    Posts
    6

    Finding the windows version...

    Hey guys,

    I have searched everywhere, and I can't find a good way to identify the windows version. Just to let you know what's going on, take a look at my algorithm:
    Code:
    #include <iostream.h>
    #include <windows.h>
    
    char ReturnWinVersion(char WinVer[]);
    
    int main()
    {
     char* Version = ReturnWinVersion();
     if (Version = win9x)
     {
     do this...
     }
     if (Version = winNT)
     {
     do this...
     }
     if (Version = WinXP)
     {
     do this...
     }
    
    return 0;
    }
    
    char ReturnWinVersion(char WinVer[]);
    {
     ***This is where I'm stuck!***
     return WinVer[];
    }
    As you can see, this is very messy coding, but I don't care at this point. Is there a good way to do this... the way I want? I know about the GetVersion() function, but I don't understand how to work with it.

    Thanks.

  2. #2
    Registered User
    Join Date
    Jul 2003
    Posts
    85

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. how to make a windows application
    By crvenkapa in forum C++ Programming
    Replies: 3
    Last Post: 03-26-2007, 09:59 AM
  2. MS Windows Welsh Language Version Available
    By hk_mp5kpdw in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 12-03-2004, 03:59 PM
  3. Windows upgrade question
    By 7smurfs in forum Tech Board
    Replies: 11
    Last Post: 10-20-2004, 01:51 PM
  4. Version of Windows
    By drdroid in forum A Brief History of Cprogramming.com
    Replies: 24
    Last Post: 08-02-2003, 03:39 PM
  5. IE 6 status bar
    By DavidP in forum Tech Board
    Replies: 15
    Last Post: 10-23-2002, 05:31 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21