W
weismart
Unregistered / Unconfirmed
GUEST, unregistred user!
在单元aunit中定义
type
DeliverStr = packed record
sequencenumber1: LongInt;
sequencenumber2: LongInt;
sequencenumber3: LongInt;
usernumber: packed array[0..21] of char;
spnumber: packed array[0..21] of char;
tp_pid: char;
tp_udhi: char;
messagecoding: char;
messagelength: integer;
messagecontent: packed array[0..159] of char;
end;
在主单元中引用aunit并定义
type TDeliver = procedure(deliver: DeliverStr);
然后在静态调用的dll函数中把Tdeliver当成一个函数参数。
请问一般在动态加载时才用 type TDeliver = procedure(deliver: DeliverStr);
为什么静态加载也这么做,另外, 不太明白type TDeliver = procedure(deliver: DeliverStr);这一句。请高手指点。
type
DeliverStr = packed record
sequencenumber1: LongInt;
sequencenumber2: LongInt;
sequencenumber3: LongInt;
usernumber: packed array[0..21] of char;
spnumber: packed array[0..21] of char;
tp_pid: char;
tp_udhi: char;
messagecoding: char;
messagelength: integer;
messagecontent: packed array[0..159] of char;
end;
在主单元中引用aunit并定义
type TDeliver = procedure(deliver: DeliverStr);
然后在静态调用的dll函数中把Tdeliver当成一个函数参数。
请问一般在动态加载时才用 type TDeliver = procedure(deliver: DeliverStr);
为什么静态加载也这么做,另外, 不太明白type TDeliver = procedure(deliver: DeliverStr);这一句。请高手指点。