abc.dll当然存在。
错误如下
access violation at address 0241c604,read of address 0241c604.
源码已贴出,请看。
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms, Dialogs,
StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
Edit1: TEdit;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
Function FindHardware(var Bm:byte;var Uip:longint;var Ucp:byte):byte;stdcall far external abc.dll';
{$R *.DFM}
procedure TForm1.Button1Click(Sender: TObject);
var
Find:integer;
b:byte;
uip:longint;
Ucp:byte;
begin
Find := FindHardware(b, uip, ucp);
Edit1.Text :=inttostr(Find);
end;
end.