wireHWND 
Author Message
 wireHWND

Hi,

how to correctly pass window handles over COM interface? I
have used HWND in my IDL file and the generated TLB file
contains wireHWND instead.
Then if I generate a C# wrapper from the TLB, I am unable
to pass the window handle, because the method expects the
wireHWND structure, but the my implementation has plain
HWND as an argument.
... back to the original question ... How to pass window
handles correctly?

Thanks,
Vlasta



Sat, 10 Jul 2004 17:52:25 GMT  
 wireHWND
Type libraries are not very good when it comes to non-Automation
types. Use long instead of HWND as a compromise...

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD

MVP VC FAQ: http://www.mvps.org/vcfaq
=====================================

Quote:

> Hi,

> how to correctly pass window handles over COM interface? I
> have used HWND in my IDL file and the generated TLB file
> contains wireHWND instead.
> Then if I generate a C# wrapper from the TLB, I am unable
> to pass the window handle, because the method expects the
> wireHWND structure, but the my implementation has plain
> HWND as an argument.
> ... back to the original question ... How to pass window
> handles correctly?

> Thanks,
> Vlasta



Sun, 11 Jul 2004 05:43:35 GMT  
 
 [ 2 post ] 

 Relevant Pages 
 

 
Powered by phpBB® Forum Software