Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 437527
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T20:35:14+00:00 2026-05-12T20:35:14+00:00

We have an existing (old) codeline that we have recently converted from VC6 to

  • 0

We have an existing (old) codeline that we have recently converted from VC6 to VS2008 (converting to VS2005 along the way). After our conversion, all (or most) of our vcproj files set WINVER to 0x0500 via the Preprocessor Settings. In quite a few of our precompiled headers (typically stdafx.h), WINVER is set to 0x0500 (some still set it to 0x0400). If I use dumpbin /headers on our main exe, it shows that the Operating System Version is 5.0 (Windows 2000).

After changing the vcproj preprocessor settings so that WINVER and WIN32_WINNT are 0x0501 and making a similar change in the stdafx.h file and rebuilding, dumpbin stil shows that the operating system version is 5.0.

I have also created a brand new console app (as well as a brand new MFC app) using VS2008 and built them. Those exes also show an operating system version of 5.0, even though WINVER (and WIN32_WINNT), as set via the targetver.h file, is 0x0600.

I would have guessed that setting WINVER and/or WIN32_WINNT to 0x0501 or 0x0600 would have some effect on the operating system version shown by dumpbin. Am I right, should I expect dumpbin to show an operating system version corresponding to WINVER and/or WIN32_WINNT?

I have read some good articles on this (“Using the Windows headers” on msdn, “What is the difference between WINVER…” on The Old New Thing, and this particularly interesting one:
http://blogs.msdn.com/dsvc/archive/2009/06/19/troubleshooting-not-a-valid-win32-application-error-at-the-startup.aspx

While it is probably not a huge issue exactly what version appears in the operating system version field, we would like to understand the behavior and be able to do the “right” thing to ensure that we are using these macros and settings correctly.

Thanks for any help

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T20:35:14+00:00Added an answer on May 12, 2026 at 8:35 pm

    The value of the “operating system version” field is set by LINK /SUBSYSTEM.

    As an aside, the LINK /VERSION switch updates the “image version” field.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an existing prototype codebase that does stuff on selectbox changes... I have
I have an existing Git repository on Github. I wanted to reorganise my code,
We want to update an existing Application but unfortunately we have a problem. Our
I have a TFS structure that looks something like this: $ -MainSoftwareBranch -Dev -Main
is there any way of concatenation #define macros in c++ (ms compiler)? I have
I have an existing domain at work and haven't been able to limit the
I have an existing Access Database with forms and reports. This was done back
I have a webdev problem I have close to 10,000 serverside pages, all of
I have a simple PHP script using imagecreatefromjpeg to create a thumbnail version of
I'm finding myself doing more C/C++ code against Win32 lately, and coming from a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.