
winbase.h and GetLastError()
From MSDN on GetLastError:
Requirements
Header: Declared in Winbase.h; include Windows.h.
That should be clear enough.
--
With best wishes,
Igor Tandetnik
Quote:
> Hello
> I would like to use GetLastError() in a VC++ project ( Win32 console
> application not using MFC)
> It's written in MSDN that the required header file for GetLastError() is
> winbase.h. Unfortunately if I add in my code #include winbase.h, 74
> errors appear by compilating the code . The first error is
> "c:\program files\microsoft visual studio\vc98\include\winbase.h(216) :
> error C2146: syntax error : missing ';' before identifier 'Internal'"
> When using "wtypes.h" instead of "winbase.h" , the code executes without
> problem.
> Nevertheless, I'd like to understand what I did wrong by including
> "winbase.h" as described in MSDN.
> Can anyone help me ?
> Thank you in advance
> Serge Castelier