H
herbert1234
Unregistered / Unconfirmed
GUEST, unregistred user!
我用vc写了一个dll,在delphi中调用,如下:
implementation
function Min1(x,y,z:integer):integer;stdcall;external 'maxmin.dll';
function Max1(x,y,z:integer):integer;
stdcall;external 'maxmin.dll';
{$R *.dfm}
procedure TForm1.ToolButton1Click(Sender: TObject);
var a,b:integer;
begin
a:=Max1(2,3,4);
b:=a;
end;
程序在执行到最后以行end时 出现了一个Access violation错误,请高手帮帮忙!
implementation
function Min1(x,y,z:integer):integer;stdcall;external 'maxmin.dll';
function Max1(x,y,z:integer):integer;
stdcall;external 'maxmin.dll';
{$R *.dfm}
procedure TForm1.ToolButton1Click(Sender: TObject);
var a,b:integer;
begin
a:=Max1(2,3,4);
b:=a;
end;
程序在执行到最后以行end时 出现了一个Access violation错误,请高手帮帮忙!