K
kite20020304
Unregistered / Unconfirmed
GUEST, unregistred user!
//Dll
library Project1;
uses
SysUtils,
Classes;
{$R *.res}
function GetDate() : PChar; stdcall;
var
sToday : string;
begin
sToday := FormatDateTime('YYYY-MM-DD', Date);
Result := PChar(sToday);
end;
exports
GetDate;
begin
end.
//exe
procedure TForm1.Button3Click(Sender: TObject);
var
sToday : array[0..10] of Char;
begin
StrCopy(sToday, GetDate());
Edit1.Text := TButton(Sender).Caption + ' : ' + sToday ;
end;
library Project1;
uses
SysUtils,
Classes;
{$R *.res}
function GetDate() : PChar; stdcall;
var
sToday : string;
begin
sToday := FormatDateTime('YYYY-MM-DD', Date);
Result := PChar(sToday);
end;
exports
GetDate;
begin
end.
//exe
procedure TForm1.Button3Click(Sender: TObject);
var
sToday : array[0..10] of Char;
begin
StrCopy(sToday, GetDate());
Edit1.Text := TButton(Sender).Caption + ' : ' + sToday ;
end;