|
马上加入TC
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
#import "dm.dmsoft" zt
namespace zt
//定义默认空间
function bool start_click()
//这里添加你要执行的代码
dm.SetPath(help.getrcpath("rc"))
int T
int x
int y
T=dm.FindPic (0,0,500,500,"1.bmp","000000",0.9,0,x,y)
if (x>0)
help.messagebox("%d%d",x,y)
else
endif
return true
//函数返回语句
endfunction
function bool exit_click()
//这里添加你要执行的代码
help.exit()
return true
//函数返回语句
endfunction
function bool init()
//这里添加你要执行的代码
bool ret=help.regdll("rc:dm.dll",true)
if(ret)
help.messagebox("插件注册成功")
else
help.messagebox("插件注册失败")
endif
return true
endfunction
endnamespace
//空间结束语句
以上是源代码
运行之后提示 行号:7错误信息:((help.getrcpath("rc")))是错误的是参数列表
不知道为什么会这样,,使用的是TC3.039版本 |
|