IOleClientSite  站点是干什么,在ActiveX控件中起什么作用看了好久,一直没有弄明白这个概念!

解决方案 »

  1.   

    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...
    恕我愚钝,还是不大明白。
      

  2.   

    这个接口是当你的控件需要 inplace edit 的时候 必须继承的借口
      

  3.   

    也遇到这个问题了
    借地方问一下,我写的DLL控件 原来是没有IOleClientSite接口的,但是后来因为需要访问网页上 JAVASCRIPT的函数,所以加上了 , 然后我的控件在下载的时候就无法注册了,但是手工用regsvr32 就可以注册,请问这个是为什么呢?
      

  4.   

    件在下载的时候就无法注册了
    ------------
    这个可能是ie安全的考虑。可能需要实现其他的接口ISafe****
      

  5.   

    TO jeng(乐去) ( )之前是可以下载的,只是说加了IOleClientSite接口后,才不能注册的,而且安全接口啊什么的我肯定都已经实现了的,真奇怪啊,为什么呢?
      

  6.   

    据我所知: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. 
    ....
      

  7.   

    你可以用GetClientSite()试着得到一个site,
    如果不行的话,我也不知道怎样得到一个ClientSite,
    我也没有发现哪一个默认的实现ClientSite