Conflicts with MFC and VC 5
Henrik Schulz
henrik.schulz@anite-systems.lu
Thu, 27 Nov 1997 19:01:31 +0100
If anybody is developing using MS VC 5 and MFC, I have the following
situation:
#include <omniORB2/CORBA.h>
#include <afxwin.h>
class Test
{
public:
Test(CWnd& wnd);
};
Test::Test(CWnd& wnd)
{
}
compiling the code creates the following wonderful message:
Compiling...
Test.cpp
C:\apps\DevStudio\VC\MFC\include\afxv_w32.h(14) : fatal error C1189:
#error : WINDOWS.H already included. MFC apps must not #include
<windows.h>
Error executing cl.exe.
Test.obj - 1 error(s), 0 warning(s)
This sample code has conflicts during the compilation with the the MFC
definitions.
For any idea to solve this problem and the reason why it appears thank
you in advance.
Henrik.
--
Henrik Schulz
Anite-Systems Limited
13, Rue Robert Stumper
L-2557 Luxembourg
WWW.Anite-Systems.lu
Henrik.Schulz@Anite-Systems.lu
Tel: ++352 405161-1
Fax: ++352 403150