ShellExecute函数

来源:互联网 发布:马云说别在淘宝买了 编辑:程序博客网 时间:2024/04/18 14:41

使用ShellExecute函数,比如:你要打开一个IE,并浏览www.baidu.com的话: 1.先uses shellapi单元 2.在按钮的OnClick事件中: procedure TForm1.Button1Click(Sender: TObject); begin ShellExecute(Self.handle,'open',PChar('IEXPLORE.EXE'),'http://www.baidu.com','',sw_shownormal); end;

原创粉丝点击