直升机最大能吊多重:DLL静态调用

来源:百度文库 编辑:杭州交通信息网 时间:2024/04/28 05:23:00
我写了一个简单的程序,里面要用到DLL静态调用,但不知道为什么不对,各位高手帮看看吧.我是初学者,大家不要取笑啊
unit Unit1;

interface

uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;

type
TForm1 = class(TForm)
Button1: TButton;
Label1: TLabel;
OpenDialog1: TOpenDialog;
procedure Button1Click(Sender: TObject);

private
{ Private declarations }
public
{ Public declarations }
end;

var
Form1: TForm1;
filename:string;

implementation

{$R *.dfm}
function GetTime(filename:string):integer;
external 'E:\ReadTsFileInfo.dll';

procedure TForm1.Button1Click(Sender: TObject);
begin
if OpenDialog1.Execute then
begin
filename:=OpenDialog1.FileName;
Label1.Caption :=inttostr(GetTime(filename));
end;

end;

end.

枚举类型有错,条件分支表达式不通。
inttostr(GetTime(filename)); 这是什么东西你知道不