这种dll中的函数要怎么调用? 函数里有一个type类型,我是不是要在delphi里再重新定义一个这种类型才行?能不能给个例子 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 数据类型定义,在执行程序和动态链接库中都加以定义typePdattyp=^Tdattyp;Tdattyp=recorddat1:dword;dat2:integer;end;在动态链接库里procedure testcord1(var dattyp:Tdattyp);stdcall;begindattyp.dat1:=100;dattyp.dat2:=-5;end;procedure testcord2(dattypp:Pdattyp);stdcall;begindattypp^.dat1:=200;dattypp^.dat2:=-11;end;在程序里procedure test();vardattyp:Tdattyp;begintestcord1(dattyp);showmessage(inttostr(dattyp.dat1)+'|'+inttostr(dattyp.dat2));testcord2(@dattyp);showmessage(inttostr(dattyp.dat1)+'|'+inttostr(dattyp.dat2));end; 开发BPL的问题。 知道一个进程的PID,怎么得到进程名字? 有关dll的一个小问题,,,, 如何把收到的报保存到listview的中,并提取出来? 我想把参数从网页中,传到OCX里面,有什么好办法? ★★★请教MU木马的盗号原理!纯属讨论! 关于重绘窗体的问题,100分,求救 问一个DBGrid问题,菜鸟勿进 delphi编程!(delphi实现数据库的导入) 请问,怎样获得网卡的MAC地址!解决了给分,只给一个人!@!! 如何获得一个处于运行时的程序的对象(如变量)的物理地址和虚拟地址以及二者的转换关系? 关于TTable 的locate 函数,有时跑到下一行,为什么?
type
Pdattyp=^Tdattyp;
Tdattyp=record
dat1:dword;
dat2:integer;
end;在动态链接库里
procedure testcord1(var dattyp:Tdattyp);stdcall;
begin
dattyp.dat1:=100;
dattyp.dat2:=-5;
end;procedure testcord2(dattypp:Pdattyp);stdcall;
begin
dattypp^.dat1:=200;
dattypp^.dat2:=-11;
end;
在程序里procedure test();
var
dattyp:Tdattyp;
begin
testcord1(dattyp);
showmessage(inttostr(dattyp.dat1)+'|'+inttostr(dattyp.dat2));
testcord2(@dattyp);
showmessage(inttostr(dattyp.dat1)+'|'+inttostr(dattyp.dat2));
end;