Hi
I just included my exported include file from the MFC DLL and got a lot of
error messags during compilation, -without using the interface classes at all.
If I inlcude the same header file in an MFC based executable it compiles
fine and there is no problem using the interface classes.
Suggesstions?
Thanks.
Kjell Arne
> > Hi
> > How to integrate an MFC 7.0 DLL into a standard C++ application.
[quoted text clipped - 8 lines]
>
> -cd
Carl Daniel [VC++ MVP] - 28 Feb 2005 15:22 GMT
> Hi
>
[quoted text clipped - 7 lines]
>
> Suggesstions?
You need to include some basic MFC header(s) before including your class
header. MFC class headers generated by the class wizard are not complete -
they presume that you've already included the MFC headers themselves.
You could help our by posting a few of the error messages. You'd also
probably get a more precise resolution by posting to
microsoft.public.vc.mfc.
-cd
Kjell Arne Johansen - 01 Mar 2005 09:35 GMT
Thank You
I try to include MFC stuff in stdafx.h but then I get the error message
c:\Program Files\Microsoft Visual Studio
.NET\Vc7\atlmfc\include\afxv_w32.h(18): fatal error C1189: #error :
WINDOWS.H already included. MFC apps must not #include <windows.h>
I probably have set a flag somewhere?
Kjell Arne Johansen
> > Hi
> >
[quoted text clipped - 17 lines]
>
> -cd