Thread: Detect OS version

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Advanced Novice linucksrox's Avatar
    Join Date
    Apr 2004
    Location
    Michigan
    Posts
    198

    Detect OS version

    Hi, I'm trying to compile this code, and I'm pretty sure I just don't have my project configured properly, but I don't know what to do, and Google hasn't given me any headway this time... I actually copied and pasted the code from this site:
    Getting the System Version (Windows)
    and when I go to compile, I get this error:
    1>c:\users\eric\documents\visual studio 10\projects\test002\test002\main.cpp(73): error C2065: 'PRODUCT_PROFESSIONAL' : undeclared identifier
    1>c:\users\eric\documents\visual studio 10\projects\test002\test002\main.cpp(73): error C2051: case expression not constant

    This seems strange to me, that it doesn't recognize this one particular value that is supposedly defined in the Windows library itself... What am I doing wrong?
    I'm sure you need to know: Visual Studio 2010 Professional (Beta1), just opened a new empty Win32 project. Oh, and I'm running Windows 7 Professional 64 bit...
    Thanks for any tips!
    Last edited by linucksrox; 05-15-2010 at 04:21 PM.
    "What are all you parallelograms doing here?" - Peter Griffin (to Joe and his wheelchair buddies)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Problem building Quake source
    By Silvercord in forum Game Programming
    Replies: 16
    Last Post: 07-11-2010, 09:13 AM
  2. detectine OS type?
    By techevo in forum C Programming
    Replies: 4
    Last Post: 03-12-2010, 05:09 AM
  3. No Version info tab in file properties?
    By cpjust in forum Windows Programming
    Replies: 2
    Last Post: 06-03-2008, 03:42 PM
  4. Replies: 5
    Last Post: 11-20-2003, 01:27 AM
  5. Dev C++ Version 5
    By Zoalord in forum C++ Programming
    Replies: 3
    Last Post: 08-30-2003, 01:56 PM