Dear all,

In "http://msdn2.microsoft.com/en-us/library/ms803115.aspx",
Could someone kindness tell me how to obtain "pUnkOuter" in the first line
of the sample code?

Much Thanks!
--
Grap

Re: extension units sample by Volodymyr

Volodymyr
Tue Dec 11 07:07:57 PST 2007

( you will need to dig a bit into COM subsystem )

I suppose, you will need to implement a small COM server which will
implement IExtensionUnit interface in your project, here is an example for
definition of interfaces,
http://msdn2.microsoft.com/en-us/library/ms803122.aspx

Once you will define this interface, you will need to implement it: here is
example: http://msdn2.microsoft.com/en-us/library/ms803121.aspx

Once you properly implement and register it, you will be able to query that
strange "IUknown" pointer.

I suggest you to learn a bit about COM subsystem from this article:
http://codeproject.com/KB/COM/comintro2.aspx

However, keep in mind two things:

1. This is an offtopic for this NG
2. There are huge books on COM. Sometime it's not enough to read just one
article to understand even general purposes of COM

--
Volodymyr
"grapwang" <grapwang@discussions.microsoft.com> wrote in message
news:6AD7C3CF-1718-4132-88C2-4B6E569BA6D0@microsoft.com...
> Dear all,
>
> In "http://msdn2.microsoft.com/en-us/library/ms803115.aspx",
> Could someone kindness tell me how to obtain "pUnkOuter" in the first line
> of the sample code?
>
> Much Thanks!
> --
> Grap



Re: extension units sample by grapwang

grapwang
Tue Dec 11 19:02:00 PST 2007

Dear Volodymyr,

Your suggestion should be helpful, and I will follow it to do the work.
Thanks for your kindly help!

--
Grap


Re: extension units sample by grapwang

grapwang
Tue Dec 11 19:14:06 PST 2007

Dear Volodymyr,

Thanks for your kindly help!
Your suggestions should be helpful, and I will follow it to do the work.

--
Grap