超级送分问题阿~!!!!!!!!!!!!!!!!!!!!!!!!!!!!!(5分)

  • 主题发起人 主题发起人 carem1
  • 开始时间 开始时间
C

carem1

Unregistered / Unconfirmed
GUEST, unregistred user!
我是不是漏掉某些东西了???<br>procedure TForm3.ToolButton10Click(Sender: TObject);<br>var SEI:PSHELLEXECUTEINFOA;<br>begin<br>&nbsp; getmem(sei,sizeof(sei^));<br>&nbsp; With SEI^ do<br>&nbsp; begin<br>&nbsp; &nbsp; cbSize:= sizeof(SEI&lt;font color=red&gt;&lt;b&gt;^&lt;/b&gt;&lt;/font&gt;);//&lt;&lt;=======怎么会出错呢?是不是要调用什么单元阿??我已经用了shellapi了~!!!!<br>&nbsp; &nbsp; fMask:= SEE_MASK_NOCLOSEPROCESS Or SEE_MASK_INVOKEIDLIST Or SEE_MASK_FLAG_NO_UI;<br>&nbsp; &nbsp; wnd:=handle;<br>&nbsp; &nbsp; lpVerb:= 'properties';<br>&nbsp; &nbsp; lpFile:= 'c:/HPW5Ast2.dll'; &nbsp;//你自己的文件名<br>&nbsp; &nbsp; lpParameters:=nil;<br>&nbsp; &nbsp; lpDirectory:=nil;<br>&nbsp; &nbsp; nShow:=0;<br>&nbsp; &nbsp; hInstApp:=hInstance;<br>&nbsp; &nbsp; lpIDList:=nil;<br>End;<br>ShellExecuteEX(SEI);<br>freemem(sei);<br>end;
 
cbsize:=sizeof(SEI)试一下
 
后退
顶部