Re: ole server aware of its container



Have a look at IOleClientSite::GetMoniker. You can use it to
get a moniker to yourself that uses the container's implementation
of IOleItemContainer for resolution. IMoniker::GetDisplayName
should give you the name the container uses (assuming you requested
a relative moniker, not a full moniker).

--
=====================================
Alexander Nickolov
Microsoft MVP [VC], MCSD
email: agnickolov@xxxxxxxx
MVP VC FAQ: http://vcfaq.mvps.org
=====================================

"Bob" <bob.cardillo@xxxxxxxxx> wrote in message
news:1176993899.651924.25590@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I tried using IOleItemContainer's GetObject() method passing in "" as
the object name and incredibly it returned my own object. So that
shot in the dark was pretty thrilling initially.

BUT, it turns out it's still giving me the object itself rather than
the "Shape" object from PowerPoint.



.



Relevant Pages


Loading