F fengxiaoxiao Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #1 在vc中的int,unsigned short,long 对应delphi中的数据类型是什么?
T TrustMe Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #2 32位机 int = integer unsigned short = word long = integer
F fengxiaoxiao Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #3 谢谢TrustMe.不过再追加一个问题 HT7484dll=LoadLibrary("HT7484.dll" ... typedef int(*HT7484_AD)(int,unsigned short,long ); typedef int(*HT7484_DA)(int,int,unsigned short, long ); ... AD=(HT7484_AD)GetProcAddress(HT7484dll, "HT7484_ad" DA=(HT7484_DA)GetProcAddress(HT7484dll, "HT7484_da" 这个dll在delphi中如何声明?
谢谢TrustMe.不过再追加一个问题 HT7484dll=LoadLibrary("HT7484.dll" ... typedef int(*HT7484_AD)(int,unsigned short,long ); typedef int(*HT7484_DA)(int,int,unsigned short, long ); ... AD=(HT7484_AD)GetProcAddress(HT7484dll, "HT7484_ad" DA=(HT7484_DA)GetProcAddress(HT7484dll, "HT7484_da" 这个dll在delphi中如何声明?
S siking Unregistered / Unconfirmed GUEST, unregistred user! 2007-11-09 #4 type TAD=function (Integer,UINT,LongInt):Integer;stdcall; TDA=function (Integer,Integer,UINT,LongInt):Integer;stdcall; end; var AD:TAD; DA:TDA; begin @AD:=GetProcAddress(HT7484dll,'HT7484_ad'); @DA:=GetProcAddress(HT7484dll,'HT7484_da'); end;
type TAD=function (Integer,UINT,LongInt):Integer;stdcall; TDA=function (Integer,Integer,UINT,LongInt):Integer;stdcall; end; var AD:TAD; DA:TDA; begin @AD:=GetProcAddress(HT7484dll,'HT7484_ad'); @DA:=GetProcAddress(HT7484dll,'HT7484_da'); end;