I'm working on a project based on ATL (with Visual Studio.NET 2002), say project A. I need to add an existing project based on MFC (say project B) to the project A. Simply adding the new project Visual Studio compiles them with no errors. But when I try to include a .h file of project B in the project A, I get the error:
fatal error C1189: #error : "CWnd class isn't included (include AFXWIN.H)"
(this error is in the .h file of project B included in a file of project A).
Then I include also afxwin.h in project A, but I get the error:
\afxv_w32.h(18): fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include <windows.h>
I have done a lot of tries to solve the problem, but with no results.
Can someone help me?
Thank you in advance.