This is pasted from a website, which presumably was working. I did some googling and found that the issue I have now is a result of Visual C++ 2010 SP1, which I downloaded t
Once you add a .cpp file and have it include the header this error should go away. I've read some where else this is a bug.
1.Close the Project. 2.Reopen the project,and all ok. this is my expeirence.
Rebuilding IntelliSense database solves the problem.
move the #include statements outside the #if #end block
I had the same problem. My solution was to add a missing ';' at the end of a class definition. Although this does not seem to apply to your problem, others who come here with the same error might find this helpful.