如何打开Windows已经注册的文件如:README.TXT shellexecute(handle,'open',pchar('c:\readme.txt'),nil,nil,sw_normal) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 还是错:[Error] Unit2.pas(29): Undeclared identifier: 'shellexecute'[Fatal Error] Project3.dpr(5): Could not compile used unit 'Unit2.pas'原文如下:-------------------------unit Unit2;interfaceuses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);beginshellexecute(handle,'open',pchar('c:\sender.ini'),nil,nil,sw_normal);end;end. uses Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls,shellapi;要加个shellapi,shellexecute的定义在那里面 找个Delphi老师 请教:SQL中ID自动编号问题 Indy中的IdTCPClient组件怎样通过代理连接Internet服务器? 我才刚开始学数据库.请问那里有教程吗? 请做销售界面用什么网格控件比较好呀 ??? 线程出错问题 MessageBox里面的MB_OK是在哪个单元里定义的 求tranfix 的源代码!! 我用来检测对方是否断线的数据bb发不出去? 求购通讯软件 用过DxDBGrid得请看 关于怎样将一个Word文档另存为?
[Error] Unit2.pas(29): Undeclared identifier: 'shellexecute'
[Fatal Error] Project3.dpr(5): Could not compile used unit 'Unit2.pas'
原文如下:
-------------------------
unit Unit2;interfaceuses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.DFM}procedure TForm1.Button1Click(Sender: TObject);
begin
shellexecute(handle,'open',pchar('c:\sender.ini'),nil,nil,sw_normal);
end;end.
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls,shellapi;
要加个shellapi,shellexecute的定义在那里面