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
Solved

Setting WINVER

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

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

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

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…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples.  You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

789 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