New Forum | Previous | Next | (P-PDF) Developers
Topic: Link to a MFC extension DLL.
Conf: (P-PDF) Developers, Msg: 118641
Date: 9/14/2004 08:28 PM
I need my Acrobat plug-in to instantiate a MFC-based object (an object derived from CPropertyPage) that is implemented in a MFC extension DLL.
Since my Acrobat plug-in is a DLL itself (with MFC support enabled), I did what Microsoft instructs programmers to do when using a MFC extension DLL from another DLL: I added an export function with the line:
inside and I took care that it is called from my plug-in before I instantiate the object that the extension DLL exports.
However, the plug-in crashes, asserting that
AfxGetModuleState()->m_hCurrentResourceHandle returned NULL.
Note that I use MFC statically linked to my plug-in and I do call
before any operation.
Why doesn't MFC find the ResourceHandle for the control I'm trying to import from my MFC extension DLL?
Thanks for any advice.