ls_textname = 'ZFMS'
lb_close = false
do
ll_handle = FindWindowex(0, ll_handle,ls_textname, ls_1)
if isnull(ll_handle) or ll_handle = 0 then
ll_handle = 0
else
ls_text = space(255)
GetWindowText(ll_handle, ls_text, 254)
if len(ls_text) > 0 then lb_close = true
end if
loop until lb_close
這是這段代碼,以前用的沒問題,現在ll_handle回傳0找不到指定的視窗,這是什么原因造成的呀!請大蝦們幫下忙。
uj5u.com熱心網友回復:
ll_handle = FindWindowex(0, ll_handle,ls_textname, ls_1)if isnull(ll_handle) or ll_handle = 0 then
ll_handle = 0
else
..........
這個ll_handle 沒定義好吧?
uj5u.com熱心網友回復:
messagebox(ls_textname,ls_1)看看這兩個值對不對?
uj5u.com熱心網友回復:
是不是 ll_handle = FindWindowex(0, ll_handle,ls_textname, ls_1) 想要找的 ls_textname 已經更改?轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/92175.html
標籤:API 調用
上一篇:pb動態加載PBD的問題。
下一篇:PB向VC的DLL傳入引數錯誤
