打开方式 各位GGJJ 怎么调用WINDOWS下的打开方式程序 即在程序找不到运行环境出现的哪个用于选择打开方式的对话框 急,再线 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 好像是rundll什么的,记不清了。 unit Unit1;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; Edit1: TEdit; Button2: TButton; OpenDialog1: TOpenDialog; procedure Button2Click(Sender: TObject); private { Private declarations } public { Public declarations } end; function OpenAs_RunDLL(const h:hwnd;b:hwnd;const filename:pchar;sw:integer=SW_SHOW):integer;stdcall;external 'shell32.dll' name 'OpenAs_RunDLL';var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button2Click(Sender: TObject);var s : string;begin if OpenDialog1.Execute then begin s := OpenDialog1.FileName; OpenAs_RunDLL(self.Handle, 0, PChar(s)); end;end;end. 如果将结构体类型转成字符串 fastreport 多个page 页码显示问题? 《请教》如何将一个目录下的所有文件的文件名载入memo 谁能告诉我学哪门语言好? 谁有关于delphiX控件的相关帮助文档及例子啊?谢谢! 请问如何用delphi创建文件夹,及删除文件加,文件. 打印老出错! 怎样在程序中控制TDBChart的datasource??? Help ME!!请指点不胜感激! 有谁知道怎样把菜单放入工具条中! 哪里有bt协议的文档? modem 传输文件,300分给!!!顶顶也有份阿!!
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
Button2: TButton;
OpenDialog1: TOpenDialog;
procedure Button2Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end; function OpenAs_RunDLL(const h:hwnd;b:hwnd;const filename:pchar;sw:integer=SW_SHOW):integer;stdcall;external 'shell32.dll' name 'OpenAs_RunDLL';var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button2Click(Sender: TObject);
var
s : string;
begin
if OpenDialog1.Execute then
begin
s := OpenDialog1.FileName;
OpenAs_RunDLL(self.Handle, 0, PChar(s));
end;
end;end.