Solved

Setting WINVER

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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
IntroductionThis article is the second in a three part article series on the Visual Studio 2008 Debugger.  It provides tips in setting and using breakpoints. If not familiar with this debugger, you can find a basic introduction in the EE article loc…
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.

705 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now