Call Plugin.Msg.Tips("") '“空调用”一次, 创建COM组件
VBSBegin
a=Msg.Tips("这是一个测试")
VBSEnd
'第二种解决办法
Import "Msg.dll"
VBSBegin
a=Msg.Tips("这是一个测试")
VBSEnd
本文探讨了如何使用VBS脚本与COM组件进行交互,通过调用Msg.dll中的Msg.Tips方法展示了一个测试实例。文章提供了两种实现方式,一种是直接调用,另一种是导入dll后调用。
Call Plugin.Msg.Tips("") '“空调用”一次, 创建COM组件
VBSBegin
a=Msg.Tips("这是一个测试")
VBSEnd
'第二种解决办法
Import "Msg.dll"
VBSBegin
a=Msg.Tips("这是一个测试")
VBSEnd
6448
1673

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