1
16cy
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);<br>var<br>hnd:hwnd;<br>s:array[0..254] of char;<br>begin<br> hnd:=FindWindowEx(null,null,'wswindow','dfdfsd7');<br> getwindowtext(hnd,@s,254);<br> showmessage(s);<br>end;<br><br>上面这段简单程序,编译后运行,出现:<br>Could not convert variant of type(Null) into type (Int64)<br>的错误提示,百思不得其解,看了帮助,头两个参数和第四个是可以为空的,这段程序到底错在哪?