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