在name.dll中要有 function yourname():Integer;stdcall; ………… ………… exports yourname; 在Unit1单元中 function yourname (i :integer):integer;external 'name.dll';stdcall;
要是在过程中调用这个函数呢?? 《delphi5开发人员指南〉》的光盘中有一个程序就是用的uses
连接成功了,可按下f9时,程序却停在: program Project1;uses Forms, Unit1 in 'Unit1.pas' {Form1};{$R *.res}begin// 这里了?? Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run; end.为什么??
function yourname():Integer;stdcall;
…………
…………
exports
yourname;
在Unit1单元中
function yourname (i :integer):integer;external 'name.dll';stdcall;
《delphi5开发人员指南〉》的光盘中有一个程序就是用的uses
program Project1;uses
Forms,
Unit1 in 'Unit1.pas' {Form1};{$R *.res}begin// 这里了??
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.为什么??