Passing an HICON from component 
Author Message
 Passing an HICON from component


What's the best way of passing a HICON back to a client
from a component? Would it be a void*?



Sun, 28 Dec 2003 22:50:58 GMT  
 Passing an HICON from component

>What's the best way of passing a HICON back to a client
>from a component? Would it be a void*?

This will only work in process (i.e. with DLL servers) as HICONs only have
relevance within a single process space. If you can enforce this, then just
pass the HICON directly. No need to cast. If cross process marshalling is
required, consider using IPicture.


Sun, 28 Dec 2003 23:54:34 GMT  
 [ 2 post ] 

 Relevant Pages 

1. Newbee question - Passing an HICON between processes on the same machine

2. Passing SmartPtr through two components

3. Passing a 2D SafeArray from VB client to ATL COM component

4. How to pass an ADODB.Stream object from VB to a method in a C++ component

5. How to pass vb Object into ATL component

6. Passing Components as Properties

7. Passing a component instance to another object

8. Passing component pointer from atl service to vb

9. Passing array of string to component

10. passing strings from ATL component to VB app

11. Passing an external ADO connection into an MTS component

12. Passing Object to DCOM component


Powered by phpBB® Forum Software