
Use of MFC User DLL in ATL COM Object
Hi there,
take a close look on what kind of assert you get. In most cases they yield
the clue to what's wrong. Maybe the afxResourceHandle is not set? Most
MFC-Resource-Loading functions assert it to be != NULL.
Sascha Wildgrube
Quote:
> I am trying to put an ATL COM wrapper on an existing DLL, which is an MFC
> User Extension DLL. (ie MFC searchs it to load resources).
> The project is defined as an ATL project with MFC support. It builds fine.
> When I invoke a function that wants to load a resource from the DLL, such
as
> a dialog template or a bitmap, I get an assert or crash.
> I have searched the knowledge base regarding this, and I have found
nothing
> that says you cant have a com dll wrapper that loads mfc user extension
> dll's.
> Anyone have any idea about why this fails?
> regards,
> Rich