Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. System Version

System Version

Scheduled Pinned Locked Moved C / C++ / MFC
helpcomtutorialannouncement
6 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anilkumar K V
    wrote on last edited by
    #1

    To get the OS version, I used the sample code from http://msdn2.microsoft.com/en-gb/library/ms724429.aspx I am getting Error C2039: 'wProductType' : is not a member of '_OSVERSIONINFOEXA' on compile. Error C2065: 'VER_NT_WORKSTATION' : undeclared identifier I saw that wProductType not a member of OSVERSIONINFOEX. & VER_NT_WORKSTATION not define in winbase.h The PSDK version i am using is 5.2.3790.1830 How to solve this issue. I want the code should work in Vista also

    P 1 Reply Last reply
    0
    • A Anilkumar K V

      To get the OS version, I used the sample code from http://msdn2.microsoft.com/en-gb/library/ms724429.aspx I am getting Error C2039: 'wProductType' : is not a member of '_OSVERSIONINFOEXA' on compile. Error C2065: 'VER_NT_WORKSTATION' : undeclared identifier I saw that wProductType not a member of OSVERSIONINFOEX. & VER_NT_WORKSTATION not define in winbase.h The PSDK version i am using is 5.2.3790.1830 How to solve this issue. I want the code should work in Vista also

      P Offline
      P Offline
      prasad_som
      wrote on last edited by
      #2

      Which IDE you are using ? There should not be problem with VS2K5.

      Prasad Notifier using ATL | Operator new[],delete[][^]

      A 1 Reply Last reply
      0
      • P prasad_som

        Which IDE you are using ? There should not be problem with VS2K5.

        Prasad Notifier using ATL | Operator new[],delete[][^]

        A Offline
        A Offline
        Anilkumar K V
        wrote on last edited by
        #3

        I am using VS 6.0

        P 1 Reply Last reply
        0
        • A Anilkumar K V

          I am using VS 6.0

          P Offline
          P Offline
          prasad_som
          wrote on last edited by
          #4

          You need to change include directories path to point to inlcudes in latest platform SDK. Use Tools-->Options-->Directoies.

          Prasad Notifier using ATL | Operator new[],delete[][^]

          A 1 Reply Last reply
          0
          • P prasad_som

            You need to change include directories path to point to inlcudes in latest platform SDK. Use Tools-->Options-->Directoies.

            Prasad Notifier using ATL | Operator new[],delete[][^]

            A Offline
            A Offline
            Anilkumar K V
            wrote on last edited by
            #5

            Thanks Prasad, It worked when i pointed to new PSDK

            P 1 Reply Last reply
            0
            • A Anilkumar K V

              Thanks Prasad, It worked when i pointed to new PSDK

              P Offline
              P Offline
              prasad_som
              wrote on last edited by
              #6

              Welcome !

              Prasad Notifier using ATL | Operator new[],delete[][^]

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups