Re: MFC Support in DLL's
- From: "Frank Hickman [MVP]" <fhickman_NOSP@xxxxxxxxxxxxxxx>
- Date: Sun, 3 Apr 2005 17:33:06 -0400
"ed" <ed@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:03A4326E-E360-4FAF-B6DF-31D0063DC05A@xxxxxxxxxxxxxxxx
>I realize this is probably an old and often repeated question, but I have
> been unable to find any articles that have been able to help me.
>
> I have a DLL written in plain win32 that I want to add MFC support to.
> I'm
> having trouble with the DllMain function. I've tried just removing the
> entire DllMain function, yet I'm still getting the compiler error that
> DllMain is already defined.
>
> What Do I need to add to make my DLL support MFC?
>
> Thanks in advance,
> ed
While what you want to do can be done, it would be easier to create an new
DLL project that has support built in and then transfer your source files to
the new project. This is because there are multiple areas in the project
settings that need to be changed, as well as the project workspace file
itself, to get it to work properly.
--
============
Frank Hickman
Microsoft MVP
NobleSoft, Inc.
============
Replace the _nosp@m_ with @ to reply.
.
- References:
- MFC Support in DLL's
- From: ed
- MFC Support in DLL's
- Prev by Date: Re: Clearing a CDialog Box
- Next by Date: Re: examining filetype
- Previous by thread: MFC Support in DLL's
- Next by thread: Re: MFC Support in DLL's
- Index(es):
Relevant Pages
|