Re: MFC Support in DLL's

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"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.


.



Relevant Pages

  • Make sure that you do the following:
    ... It turns out that you need not only the .dll files, but the .manifest files as well. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Make sure that you do the following:
    ... It turns out that you need not only the .dll files, but the .manifest files as well. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Make sure that you do the following:
    ... It turns out that you need not only the .dll files, but the .manifest files as well. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Make sure that you do the following:
    ... It turns out that you need not only the .dll files, but the .manifest files as well. ... Microsoft Online Community Support ... where an initial response from the community or a Microsoft Support ...
    (microsoft.public.vsnet.debugging)
  • Re: refresh com control
    ... On the References tab I clicked the dll and then clicked remove. ... You would need to make sure that the new component was compiled with "Binary Compatibility". ... We welcome your comments and suggestions about how we can improve the support we provide to you. ... The MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 1 business day is acceptable. ...
    (microsoft.public.dotnet.languages.vb)