error C1189 and C3861  
Author Message
logitree





PostPosted: Visual C++ General, error C1189 and C3861 Top

In attempting to rebuild a project in Visual Studio .NET 2003 that was originally developed and successfully built in VC++ 5, I encounter the errors:

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(362) : error C2065: 'GUID_NULL' : undeclared identifier

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(368) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(384) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(412) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(443) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(449) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(465) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(2228) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlcomcli.h(2458) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atliface.h(2680) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atliface.h(2684) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlbase.h(5083) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\atlbase.h(6110) : error C3861: 'GUID_NULL': identifier not found, even with argument-dependent lookup

C:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afxv_w32.h(18) : fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>

Any suggestions

Thank you.



Visual C++1  
 
 
Martin Richter





PostPosted: Visual C++ General, error C1189 and C3861 Top

You included MFC headers and windows.h.

Remove the include for windows.h and just leave the MFC headers!