帮忙转换一下C++写的DLL的delphi 调用函数!!!急(200)

  • 主题发起人 主题发起人 lqcxx
  • 开始时间 开始时间
L

lqcxx

Unregistered / Unconfirmed
GUEST, unregistred user!
帮忙转换一下C++写的DLL的delphi 调用函数!!!急 1、HANDLE _stdcall Open_Com(char* cPort,int nType);2、unsigned int _stdcall Close_Com(HANDLE hPort);3、unsigned int _stdcall Set_UserPort(BYTE NAD);4、unsigned long _stdcall GetaCount(HANDLE hPort, char* cErrMsg);5、unsigned int _stdcall Load(HANDLE hPort,unsigned char DLKindex,long nAmount,char* cDateTime,char* cErrMsg);
 
VC++ Delphi INT Integer UNSIGNED Word UNSIGNED INT Word UINT Word WORD Word UNSIGNED SHORT Word UNSIGNED SHORT INT Word SHORT SmallInt SHORT INT SmallInt DWORD LongInt LONG LongInt LONG INT LongInt UNSIGNED LONG LongInt UNSIGNED LONG INT LongInt CHAR Char UNSIGNED CHAR Byte CHAR* PChar LPSTR PChar PSTR PChar LPWSTR PWideChar PWSTR PWideChar VOID* Pointer BOOL Bool FLOAT Single DOUBLE Double LONG DOUBLE Extended HANDLE THandle FARPROC TFarProc ATOM TAtom TPOINT TPoint TRECT TRect COLORREF TColorRef
 
1、function Open_Com(cPort:char;nType:integer):THandle;stdcall;2、function Close_Com(hPort:THandle):integer;stdcall;3、function Set_UserPort(NAD:BYTE):integer;stdcall;4、function GetaCount(hPort:THandle; cErrMsg:pchar):LongInt;stdcall;5、function Load(hPort:THandle;DLKindex:Char;nAmount:LongInt;cDateTime:pchar;cErrMsg:pchar):integer; stdcall;
 
不用发这么多次吧?用工具直接转即可:http://www.drbob42.com/tools/headconv.htm
 
后退
顶部