X
xuziling20
Unregistered / Unconfirmed
GUEST, unregistred user!
可能SHOW的函数写的有问题,该如何写窗体的show,
另如下所写时,错误: undeclared identifier:'application'因此DLL编译通不过! 为啥呢????
不要因恶小而不为,我可是想破头了啊,没办法,才开始嘛!
library pp;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas' {Form1};
{$R *.RES}
function showes() integer;stdcall;
var form:tform1;
begin
form:=tform1.Create (appliction);
result:=form.ShowModal ;
form.free;
end;
exports showes;
begin
end.
在引用主程序中如下引用此函数
var my:function():integer;
.......
my(application);
另如下所写时,错误: undeclared identifier:'application'因此DLL编译通不过! 为啥呢????
不要因恶小而不为,我可是想破头了啊,没办法,才开始嘛!
library pp;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
SysUtils,
Classes,
Unit1 in 'Unit1.pas' {Form1};
{$R *.RES}
function showes() integer;stdcall;
var form:tform1;
begin
form:=tform1.Create (appliction);
result:=form.ShowModal ;
form.free;
end;
exports showes;
begin
end.
在引用主程序中如下引用此函数
var my:function():integer;
.......
my(application);