VC6 怎么不能在开发控件的时候不能使用COleClientItem做基类创建新类,很急的问题?
不知道是我自己安装的问题,还是VC6不让。

解决方案 »

  1.   

    可能只是在创建类时, 基类列表中没有把它给列出来吧了, 
    其实是可以以它作为基类进行派生的, 你只需要求包括头
    文件afxole.h在定义类时, 将它指定义基类就行了.
    class YourClass : public COleClientItem{}你可以参考以下msdn的内容COleClientItem can be used with either the COleDocument, COleLinkingDoc, or COleServerDoc class. To use COleClientItem, derive a class from it and implement the OnChange member function, which defines how the container responds to changes made to the item. To support in-place activation, override the OnGetItemPosition member function. This function provides information about the displayed position of the OLE item