蓝
蓝冰
Unregistered / Unconfirmed
GUEST, unregistred user!
以下代码编译通过,可是在运行时却出现错误,为什么?<br>procedure TForm1.Button1Click(Sender: TObject);<br>var<br> info:ShellExecuteInfo;<br>begin<br> info.cbSize := SizeOf(ShellExecuteInfo);<br> info.Wnd := Handle;<br> info.lpVerb := 'print';<br> info.lpFile := 'D:/YouDriveMeCrazy.txt';<br> info.nShow := SW_SHOWNORMAL;<br> info.fMask := SEE_MASK_NOCLOSEPROCESS;<br> ShellExecuteEx(@info);<br>end;