Solved

Setting WINVER

Posted on 2012-04-09
2
629 Views
Last Modified: 2012-04-09
OK,a dumb and simple question - I'm recompiling my ap in VS2008 (from 6.0).  Every file gives the warning:

 WINVER not defined. Defaulting to 0x0600 (Windows Vista)

What is my best strategy?  Where to set WINVER, what to set it to.....

Thanks!
0
Comment
Question by:tullhead
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 500 total points
ID: 37825816
If that still is related to your ast Q, set it to 0x501, which will keep all features out that are specific for versions later than XP. As a rule of thumb: Set that to resemble the oldest Windows version you want to support. Wehre to set? Either before any '#include <windows.h>' directive or better project wide in your project settings  (ALT+F7) under "Configuration Properties|C++|Preprocessor|Preprocessor Definitions" As "WINVER=0x501".
0
 
LVL 86

Expert Comment

by:jkr
ID: 37825848
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question