?
Solved

Setting WINVER

Posted on 2012-04-09
2
Medium Priority
?
700 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
  • 2
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 2000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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…
Templates For Beginners Or How To Encourage The Compiler To Work For You Introduction This tutorial is targeted at the reader who is, perhaps, familiar with the basics of C++ but would prefer a little slower introduction to the more ad…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
Suggested Courses

850 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