查看单个帖子
旧 2007-09-04, 12:55 PM   #2
huangyhg
超级版主
 
huangyhg的头像
 
注册日期: 04-03
帖子: 18592
精华: 36
现金: 249466 标准币
资产: 1080358888 标准币
huangyhg 向着好的方向发展
默认 回复: What essential difference is ISldWorks between OLE Automation and COM?

Dear Yanhua,

The OLE versions of the APIs pass SW objects back and forth using dispatch pointers. The COM versions are much more strongly typed, passing raw pointers, ( a pointer to a face) for example.

The COM versions should be slightly more effecient.

Some of the COM apis pass back raw arrays of pointers, and VB cannot handle those. VB also cannot tolerate IUnknown pointers, and some of the COM apis pass those back as well.

For the most part, C++ programmers tend to use the COM versions so they don't have to deal with lots of dispatch pointers. VB programmers tend to use the OLE versions, because that is a lot easier to do in VB, and some of the COM versions aren't going to work.

I hope this helps answer you question.

Regards,
Scott Stanley
__________________
借用达朗贝尔的名言:前进吧,你会得到信心!
[url="http://www.dimcax.com"]几何尺寸与公差标准[/url]
huangyhg离线中   回复时引用此帖