Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

unmanaged interface pointer from System.__ComObject

3 views
Skip to first unread message

Artem Kliatchkine

unread,
Jul 29, 2003, 11:10:29 AM7/29/03
to
Hi All,

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

Mattias Sjögren

unread,
Jul 29, 2003, 11:51:44 AM7/29/03
to
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.

0 new messages