Solved

Setting WINVER

Posted on 2012-04-09
2
643 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
Container Orchestration platforms empower organizations to scale their apps at an exceptional rate. This is the reason numerous innovation-driven companies are moving apps to an appropriated datacenter wide platform that empowers them to scale at a …
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.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

624 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