今天上班调试了tcl 脚本。
看了下com ,柑桔有点郁闷,书是com 原理与应用,有个例子大概是:
class CDictionary : public InterCom1,InterCom2 {
public :
virtual void InterCom1Fun () {}
virtual void InterCom2Fun () {}
private :
int data ;
}
class InterCom1 {
virtual InterCom1Fun()=0 ;
} ;
class InterCom2 {
virtual InterCom2Fun() =0 ;
}
用dll 导出CreateObject,在CreateObject中new导出CDictionary 的对象指针。
但是第三章的coCreateObject 的类厂又用来干什么呢?
希望明天能有答案

2285

被折叠的 条评论
为什么被折叠?



