I need to retrieve unmanaged pointer to an interface from
System.__ComObject for further processing in C++ written dll. Does
someone know how I can get it?
Thanks,
Artem
>I need to retrieve unmanaged pointer to an interface from
>System.__ComObject for further processing in C++ written dll. Does
>someone know how I can get it?
Try Marshal.GetIUnknownForObject(), Marshal.GetIDispatchForObject() or
Marshal.GetComInterfaceForObject(), depending on what kind of
interface pointer you want.
Mattias
--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/
Please reply only to the newsgroup.