[Solved] Error c2226: syntax error: unexpected ‘lpstr’ type

Question:

1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h(6132): warning C4229: used mnemonic error: ignore modifier on data
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\winbase.h(6133): error C2226: syntax error : unexpected “LPSTR” type

Cause: Windows.h contains tchar.h and strsafe.h before Windows.h

Solution: Comment out the statement that contains tchar.h and strsafe.h before Windows.h.

Read More: