几何尺寸与公差论坛

 找回密码
 注册
查看: 2445|回复: 1

What essential difference is ISldWorks between OLE Automation and COM?

[复制链接]
发表于 2007-9-4 12:55:24 | 显示全部楼层 |阅读模式
Question:

What essential difference is ISldWorks between OLE Automation and COM?

Background:

SW OLE Automation

Yanhua
 楼主| 发表于 2007-9-4 12:55:58 | 显示全部楼层

回复: 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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-22 19:09 , Processed in 0.036740 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表