【如何显示一个文件的属性窗口】 如何显示一个文件的属性和版本信息窗口也就是显示那个在文件上点右键,然后点属性后出现的窗口如何再切换到版本那页上(如果有版本信息) 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 使用文件结构类型struct _FILEDESCRIPTOR unit Unit1;interfaceuses Windows, Messages, shellapi,SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls;type TForm1 = class(TForm) Button1: TButton; OpenDialog1: TOpenDialog; procedure Button1Click(Sender: TObject); private { Private declarations } public { Public declarations } end;var Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);var filename : string; sei : TShellExecuteInfo;begin if opendialog1.Execute then begin filename:=opendialog1.FileName; FillChar(sei,SizeOf(sei),#0); sei.cbSize:=SizeOf(sei); sei.lpFile:=PChar(filename); sei.lpVerb:='properties'; sei.fMask:=SEE_MASK_INVOKEIDLIST; ShellExecuteEx(@sei); end;end;end. uses shellapi我已调试通过! WWWWA(aaaa) 选择EXE文件时会出一个:External exception C0000008 //选择EXE文件时会出一个:External exception C0000008我试了一下,不会出现上面的问题。学习! 在delphi环境中运行时出现编译后执行可执行文件没有问题还有:如何切换到版本那一页上?如何隐藏除版本外的tab页?如果没有版本这个tab页就不执行怎么做? 为什么在delphi环境中有问题? 我在WIN2000SP3+DELPHI6下无问题。 我这边试了 WWWWA(aaaa) 的方法,在window .net standard server+DELPHI6下无问题. 难道是我的系统问题win2000 pro 请问这是什么问题? 关于《CSDN网友奖励方案(临时)》的方案,怎么没有了下文? 如何传递PSafeArray类型的参数 各位老师:你们好,现有一个问题,如果有两个表的结构一样(字段,类型号全相同)如何找出它们不同的记录呢? actionlist的用法 treeview控件 delphi控件寻找 会Oracle的兄弟帮帮忙 请教关于ACTIVEX控件中的SOCKET编程问题 关于delphi中开发一个.dll 请问有谁知道怎样用代码安装控件啊 Delphi的程序员们联合起来!一起学习和提高!Delphi统一战盟!
Windows, Messages, shellapi,SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
OpenDialog1: TOpenDialog;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}procedure TForm1.Button1Click(Sender: TObject);
var
filename : string;
sei : TShellExecuteInfo;
begin
if opendialog1.Execute then
begin
filename:=opendialog1.FileName;
FillChar(sei,SizeOf(sei),#0);
sei.cbSize:=SizeOf(sei);
sei.lpFile:=PChar(filename);
sei.lpVerb:='properties';
sei.fMask:=SEE_MASK_INVOKEIDLIST;
ShellExecuteEx(@sei);
end;end;end.
我已调试通过!
编译后执行可执行文件没有问题还有:
如何切换到版本那一页上?
如何隐藏除版本外的tab页?
如果没有版本这个tab页就不执行怎么做?
win2000 pro