delphi 调用指针函数的问题!DLL 里有个指针函数,调用的时候怎么在type里定义????

sinat_36595358 2016-11-15 09:20:48
调用
getconnectiondevice(unsigned int:vid;unsigned int:pid;unsigned int *No);
我在
type里定义函数如下:

TGetConnectedDevices=function(vid:Uint32;pid:Uint32;noOfDevs:PUint32):Integer;stdcall; //called correctly.
.
.
.
函数调用成功.................。

现在有一个这样的函数:
void* OpenByIndex(unsigned int: vid;unsigned int: pid;unsigned int : index)

return(void*) -- the handle of device。

请问一下,这个在type里应该如果定义呢?
...全文
733 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
YueLingYueLiang 2016-11-18
  • 打赏
  • 举报
回复
顶个
  • 打赏
  • 举报
回复
type TOpenByIndex = function(vid, pid, index: cardinal): THandle; stdcall;

16,748

社区成员

发帖
与我相关
我的任务
社区描述
Delphi 语言基础/算法/系统设计
社区管理员
  • 语言基础/算法/系统设计社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧