读书人

调用sendMessageA老掉牙出错为何

发布时间: 2013-01-07 10:02:24 作者: rapoo

调用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"应该大写

读书人网 >PB

热点推荐