However a container decides to provide storage elements, it will also need some sort of data structure or internal C++ object to manage that storage and all the other information about the content object itself. This structure or object is called a client site, or container site. For every content object in a compound document, the container creates a site to manage that content object. The site itself also exposes container-side functionality to the content object in question through two interfaces of its own: IOleClientSite and IAdviseSink, as illustrated in Figure ...----from inside ole2 ,chapter 17 ...manage that storage and all the other information... 恕我愚钝,还是不大明白。
TO jeng(乐去) ( )之前是可以下载的,只是说加了IOleClientSite接口后,才不能注册的,而且安全接口啊什么的我肯定都已经实现了的,真奇怪啊,为什么呢?
据我所知:IOleClientSite 如果为NULL,后面的行为将是msdn:IOleObject::SetClientSite The NULL pointer says that that no client site is available and thereby defers notifying the object handler of the client site until the object is initialized. ....
...manage that storage and all the other information...
恕我愚钝,还是不大明白。
借地方问一下,我写的DLL控件 原来是没有IOleClientSite接口的,但是后来因为需要访问网页上 JAVASCRIPT的函数,所以加上了 , 然后我的控件在下载的时候就无法注册了,但是手工用regsvr32 就可以注册,请问这个是为什么呢?
------------
这个可能是ie安全的考虑。可能需要实现其他的接口ISafe****
The NULL pointer says that that no client site is available and thereby defers notifying the object handler of the client site until the object is initialized.
....
如果不行的话,我也不知道怎样得到一个ClientSite,
我也没有发现哪一个默认的实现ClientSite