Re: [vc7.1] #ifdef vista ? by Tim
Tim
Sat Dec 08 20:58:37 PST 2007
"Jochen Kalmbach [MVP]" <nospam-Jochen.Kalmbach@holzma.de> wrote:
>
>Replace
>
>> #ifdef vista
>
>with
>
>#if WINVER >= 0x0600
>
>then you have what you want.
Well, it will do what he NEEDS, although not what he WANTED. His original
intent, although misguided, was to detect the system on which the
compilation was occurring. In order to change WINVER, he has to change his
project properties. That is, he has to make the conscious decision "now I
wish to compile for XP", and "now I wish to compile for Vista".
This is, of course, the right way to do it.
--
Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.