Use of MFC User DLL in ATL COM Object 
Author Message
 Use of MFC User DLL in ATL COM Object

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



Fri, 14 Mar 2003 03:00:00 GMT  
 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



Sat, 05 Apr 2003 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. using external DLL in ATL COM object

2. Using MFC to build a COM dll rather than ATL

3. Using MFC to build a COM dll rather than ATL

4. how to check which DLLs will be used for an ActiveX(ATL or MFC) object

5. How to get the user ID that creates an ATL COM object

6. Using AFX EXT DLL ATL objects in ATL EXE server

7. passing COM object pointers to another COM object in ATL

8. Problems using an MFC/ATL Multithreaded COM Obj with an MFC app

9. COM object that uses MFC and MFC Socket class

10. COM object that uses MFC and MFC Socket class

11. Using a ATL Object in another ATL Object

12. Problem with scripting context when using VB com object inside VC com object

 

 
Powered by phpBB® Forum Software