有谁能看懂这份代码,给解释一下:(0分)

  • 主题发起人 主题发起人 Delphi之旅
  • 开始时间 开始时间
D

Delphi之旅

Unregistered / Unconfirmed
GUEST, unregistred user!
var
WindowsVersion: Integer platform = 2001;
procedure Test; platform;
begin
Beep;
end;
type
TWinClass = class
x: Integer;
end
library;
procedure TForm1.Button2Click(Sender: TObject);
begin
ShowMessage (
IncludeTrailingBackSlash (ExtractFilePath (Application.ExeName)));
Test;
ShowMessage (IntToStr (WindowsVersion));
TWinClass.Create;
end;
end.
 
ExtractFilePath (Application.ExeName)));指向文件跟径

IntToStr (WindowsVersion整形变成字符串形

TWinClass.Create 创建一个twinclass类
 
按下Button2后,先弹出显示本程序的存放路径的对话框,确认后,接着响铃一次,
再弹出显示Windows版本的对话框.
 
后退
顶部