And which is better. (It's a mifare1 api to operate IC Card Reader)
eg.
var
dword_1: PDWORD;
dword_2: DWORD;
begin
//function DC_Mif_AntiCollision(var _dwSnr:
Dword):WORD;Stdcall;external 'FOX_DC.dll';
GetMem(dword_1, SizeOf(DWORD));
DC_Mif_AntiCollision(dword_1);
DC_Mif_AntiCollision(dword_2);
//function DC_Mif_AntiCollision(_dwSnr:PDword):WORD;Stdcall;external
'FOX_DC.dll';
DC_Mif_AntiCollision(@dword_2);
//TODO: which one is better???
end;
which one is better, and why?
You need to repost your question on the Borland news server to make
everybody see it and possibly answer your question. Further, this newsgroup
do not officially exist, use newsgroup b.p.d.language.delphi.general.
Take a look here:
<http://tinyurl.com/8m5nw>
which links to
<http://delphi.wikicities.com/wiki/Delphi_Newsgroups>