June 16th, 2001, 08:28 PM
I am an experienced C (and VB) programmer but just started programming in VC++ (5.0). When I attempt a build I get two errors in winnt.h, which is apparently included automatically for W32. The errors are:
C:\4Programming\DevStudio\VC\INCLUDE\winnt.h(2057) : error C2061: syntax error : identifier 'PCONTEXT'
C:\4Programming\DevStudio\VC\INCLUDE\winnt.h(2058) : error C2059: syntax error : '}'
I do not use PCONTEXT or any such variable, etc. Is there any way I can avoid including winnt.h? I've looked at it and see no problems in the area referenced.
June 17th, 2001, 12:09 AM
This may be caused by the incorrect order of #includes. Normally
Win32 applications should include <windows.h> first and then all
other header files (assuming that MFC is not used).
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.