请教c语言在delphi中怎么移植? 在c语言中定义为:typedef void (* NETUSB_PFUNC) (unsigned char* buff, size_t n)请问在delphi中怎么移植? 谢谢 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 可能是type NETUSB_PFUNC=procedure(buff:PChar;n:????);size_t不知道是什么数据类型?? C++:typedef void (* NETUSB_PFUNC) (unsigned char* buff, size_t n) //这是函数指针Delphi://size_t 在C++ 中 unsigned int 相当于 delphi 中 DWORD 或是 cardinal Type NETUSB_PFUNC = procedure (buff:pchar; cardinal: n ); TypeNETUSB_PFUNC = procedure (buff:pchar; n: LongWord) of Object; 谢谢各位,问题解决了。type NETUSB_PFUNC = procedure(buff:PChar;n:integer); delphi 16进制字符串运算 有谁解决了D2009/2010/XE下Intraweb录入汉字的乱码问题了吗? 帮忙看下面的程序有什么语法错误没!! 怎么把webbrowser设成不可见? 求將數據導出word的程序---在線等待100分答謝 AdjustTokenPrivileges()函数怎么用?如何让SE_SHUTDOWN_NAME成为enable 如何取得服务器所在的时区 有关DHTMLEdit的问题 请教一个小问题??? datasnap 远端clientdataset数据刷新问题。 如何记录软件非正常退出的日志? Application.vclcomobject问题
type
NETUSB_PFUNC=procedure(buff:PChar;n:????);size_t不知道是什么数据类型
??
typedef void (* NETUSB_PFUNC) (unsigned char* buff, size_t n) //这是函数指针
Delphi:
//size_t 在C++ 中 unsigned int 相当于 delphi 中 DWORD 或是 cardinal
Type
NETUSB_PFUNC = procedure (buff:pchar; cardinal: n );
NETUSB_PFUNC = procedure (buff:pchar; n: LongWord) of Object;
type
NETUSB_PFUNC = procedure(buff:PChar;n:integer);