Ders: http://delphi.xcjc.net//viewthread.php?tid=46696
Kod:
Kod: Tümünü seç
library Project1;
{ 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;
{$R *.res}
function versionreply( mWnd: hWnd; aWnd: hWnd; Data: PChar; Parms: PChar;
Show: Boolean; NoPause: Boolean ): Integer; export; stdcall;
var blah,blah2:pansichar;
begin
blah2 := pchar(GetProgramVersion('zirc.dll'));
blah := pchar('7[14 Zirc.DLL version ' + blah2 + ' 7][14 by Zoomer 7]');
strcopy(data, blah );
Result := 3;
end;
exports
versionreply;
begin
end.
[Error] Project1.dpr(18): Undeclared identifier: 'hWnd'
[Error] Project1.dpr(24): Undeclared identifier: 'GetProgramVersion'
Ne yaptıysam yapayım bu sorunu çözemedim, yardım için teşekkür ederim.