Re: Linking to an existing MFC DLL
- From: "Alexander Nickolov" <agnickolov@xxxxxxxx>
- Date: Tue, 26 Jul 2005 15:03:10 -0700
You need to provide full MFC support to your project.
It is required by MFC extension DLLs. I suggest you
write a wrapper DLL around that extension DLL (with
proper MFC hosting capabilities) instead, and expose
only C functions from this DLL. You can then use your
C-interface DLL from your executable.
--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================
"DR Bellavance" <DRBellavance@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:D011C5F5-5FCE-4F43-BAB3-5367248E3D6C@xxxxxxxxxxxxxxxx
>I have a VC++ 6.0 project where I need to link an ATL exe server to an MFC
> Extension DLL that performs some image capture functions. My server gets
> the
> compile error...
>
> C:\Program Files\Microsoft Visual Studio\VC98\MFC\INCLUDE\afxv_w32.h(14) :
> fatal error C1189: #error : WINDOWS.H already included. MFC apps must
> not
> #include <windows.h>
>
> If I remove the #include "windows.h" from the StdAfx.h file in my ATL
> server, I get other compile errors too numerous to list here. Can anyone
> provide a suggestion or refer me to the documentation that will help me
> perform this critical task.
> --
> DR Bellavance
.
- Follow-Ups:
- Re: Linking to an existing MFC DLL
- From: DR Bellavance
- Re: Linking to an existing MFC DLL
- References:
- Linking to an existing MFC DLL
- From: DR Bellavance
- Linking to an existing MFC DLL
- Prev by Date: Does webbrowser support cangoback/forward?
- Next by Date: Invoking a C++ ATL-COM component from an IIS-ASP page
- Previous by thread: Linking to an existing MFC DLL
- Next by thread: Re: Linking to an existing MFC DLL
- Index(es):
Relevant Pages
|