Visual C++ can't find "Windows types" like PVOID, DWORD, ULONG, etc

Viewed 54465

Windows can't seem to find any of these types, and I'm completely at a loss for what to do. The things I've found on MSDN seem to suggest that they're included by default, but they haven't worked in Native programs or CLR programs.

The specific errors I'm getting are:

"<Project Name>.cpp(10): error C2065: 'PVOID' : undeclared identifier

"<Project Name>.cpp(10): error C2146: syntax error : missing ';' before identifier 'varname'

"<Project Name>.cpp(10): error C2065: 'varname' : undeclared identifier

How can I make Visual C++ recognize these types?

3 Answers
Related