几何尺寸与公差论坛

 找回密码
 注册
查看: 789|回复: 0

【转帖】addin in vb.ne

[复制链接]
发表于 2009-4-13 08:45:09 | 显示全部楼层 |阅读模式
addin in vb.net
for those who write addin in vb.net
do you turn "option strict" on or off?
if it's on, then
swapp = ctype(createobject("sldworks.application"), sldworks.sldworks)
instead of:
createobject("sldworks.application")
thx, chris
solidworks 2007 (office pro.) sp5.0
testing solidworks 2009 (pro) sp0.0
dell precision t3400
2 cpu (8500) 3.16 ghz, 3.25 gb of ram
window xp pro sp2
nvidia fx 570 6.14.11.6262
option strict just prevents automatic explicit casting of objects. by default c# and other languages have to cast objects to the correct type, the exception is vb. if you turn the option on vb does not do it automatically so you have to cast it to the correct type.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-23 23:02 , Processed in 0.035894 second(s), 20 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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