这是函数声明
Function Ulong FindWindowB(Ulong classname,String windowname) Library "user32.dll"
Function Long SetParent(Long childwin,Long parentwin) Library "user32.dll"
这是程序中的代码
Ulong handle
Ulong nul
handle=FindWindowB(nul,"地图测试")
If handle>0 Then
Return
Else
run("E:\\Projects\\Volador3000\\mapApp\\map.exe" + " " + g_str_user_id + " " + string(handle(w_smartpas)))
End If
handle=FindWindowB(nul,"地图测试")
Setparent(handle,handle(w_smartpas))
这是错误警告
我的目的是想修复软件中的一个BUG,pb程序调用外部一个exe文件,每次点击打开图标都会打开同一个文件