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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. VC++ 7.1 and WINVER warnings on Windows 2000

VC++ 7.1 and WINVER warnings on Windows 2000

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++comsysadminquestion
2 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.
  • S Offline
    S Offline
    sysop HAL9K com
    wrote on last edited by
    #1

    We recently moved from VC++ 7.0 to 7.1 and now are getting these strange warnings whenever we compile on a Windows 2000 machine WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server) This warning does not show up on Windows XP compiles. Obviously it's the wrong answer since it should be 0x0500 for Windows 2000 right? please cc victor.volkman@ugsplm.com with answer :confused:

    J 1 Reply Last reply
    0
    • S sysop HAL9K com

      We recently moved from VC++ 7.0 to 7.1 and now are getting these strange warnings whenever we compile on a Windows 2000 machine WINVER not defined. Defaulting to 0x0501 (Windows XP and Windows .NET Server) This warning does not show up on Windows XP compiles. Obviously it's the wrong answer since it should be 0x0500 for Windows 2000 right? please cc victor.volkman@ugsplm.com with answer :confused:

      J Offline
      J Offline
      Joe Woodbury
      wrote on last edited by
      #2

      In Stdafx.h, define WINVER to a valid value. While at it, define _WIN32_WINNT, _WIN32_WINDOWS and _WIN32_IE to the the values that reflect your target OS. (And yes, 0x0500 is used for Windows 2000. For _WIN32_IE, decide what the minimal version of IE support you need--even if you don't use IE directly, you may use common controls which depended on IE for installation.) Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

      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