Reputation: 7482
I seem to be having two issues with my project after I converted from VS 2005 to VS 2010.
IntelliSense: command-line error: invalid macro definition: _WIN32_WINNT>=0x0501
And I also cant seem to be able to do a "Call Hierarchy" on any of the methods or properties.
I would appreciate if someone can help me with these. Thanks
Upvotes: 1
Views: 3785
Reputation: 39013
I just encountered the same issue - the same error message, the same non-functioning call hierarchy and badly-working Intellisense.
The problem was with the preprocessor flags in the project, the following were defined:
WIN32;_DEBUG;WINVER=0x501;_WIN32_WINNT 0x0501
Notice the lack of =
after _WIN32_WINNT
. Adding the =
fixed all the issues.
P.S., this is a Console application that doesn't use any of the Windows header files, which is why the lack of the _WIN32_WINNT macro did not cause a more severe problem.
Upvotes: 3
Reputation: 7482
Decided to ignore the intellisense warnings. The call hierarchy wasn't working because I was in the release mode. Should be in debug mode.
Upvotes: 0