首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

调用sendMessageA老出错为何?解决方法

2012-02-20 
调用sendMessageA老出错为何?声明:Function long FindWindowA(String lpClassName,String lpWindowName) L

调用sendMessageA老出错为何?
声明:
Function long FindWindowA(String lpClassName,String lpWindowName) Library "user32.dll"
Function long sendMessageA(Long hwnd,long wmsg,long lparm,long sparm) Library "user32.dll"

调用:

hnd=FindWindowA(ls_tmp,ls_title)

if hnd>0 then
sendMessageA(hnd,16,0,0)
end if

错误信息:
Bad runtime function reference at line 16 in close event of object w_main.



[解决办法]
SendMessageA
"S"应该大写

热点排行