I'm getting the same warning as described in this question. The answer works, but since my program should be able to run in XP, Vista and 7, I worry that if I define the Windows version to be XP, I'll have problems in the other systems.
Even if I did define a specific version, I'd have to set it in all my C++ projects, which is a hassle. I thought of creating separate build configurations for XP, Vista and 7, each with the correct preprocessor definition in all C++ projects. Is there a more elegant solution?