|
1。按照精华区的文章
vb的dll
public sub msg(strMsg as string)
msgbox strMsg
End sub
生成 msgstr.dll文件
robot脚本中
dim i as object
set i = createobject("project.Class1")
…………
…………
运行过程中的错误是
runtime error '429'' - module dll line 9 ,object creation failed - bad object class
2. 如果robot中这样写,
declare sub msgstr Lib "msgstr" (a as integer)
Sub Main
msgstr(2)
End Sub
运行会显示
failed to load f:\autora\project\testdatastore\defaulttestscriptdatastore\tms_scripts\dll.rec sub or function 'msgstr in dll 'msgstr' not found
谢谢~
节日快乐' |
|