List of instantiated objects (from within ATL DLL) 
Author Message
 List of instantiated objects (from within ATL DLL)

Hi,

I'm a little confused about a few things:

- If 2 applications are using my DLL (on same PC), do they both create
a new copy of the binary code, or do they share the same static
members?

- Does ATL provide any methods to iterate through a list of currently
instantiated objects from within the DLL?  I've created a global
object which contains a list<CMyComObj*> and add a reference to each
new CMyComObj in the constructor - just wondering if there was a
better way.

Thanks,

Nick



Mon, 11 Apr 2005 00:48:45 GMT  
 List of instantiated objects (from within ATL DLL)

Quote:
> - If 2 applications are using my DLL (on same PC), do they both create
> a new copy of the binary code, or do they share the same static
> members?

They share code, but not static data. A DLL in each process has its own
copy of all data.

Quote:
> - Does ATL provide any methods to iterate through a list of currently
> instantiated objects from within the DLL?

No. You have to code it yourself.
--
With best wishes,
    Igor Tandetnik

"For every complex problem, there is a solution that is simple, neat,
and wrong." H.L. Mencken



Mon, 11 Apr 2005 01:21:58 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. ATL: instantiating a COM object within its own implementation DLL

2. Instantiating com object in atl service

3. ATL Service instantiating a VB com object

4. Loading a non-ATL .DLL from within ATL

5. Instantiate VB5 Ole Object from DLL in VC++ ?!?!

6. ATL Object Wizard - empty object list.

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

8. ATL object within MFC

9. accessing ATL object within implementation

10. how can i instantiate classes within a for loop

11. Help with Visual Basic ActiveX DLL showing form within Visual C++ ATL app

12. Using the CommonDialog ActiveX Control from within an ATL COM dll

 

 
Powered by phpBB® Forum Software