一个关于PB调用外部API的问题
//用VB调用是这样的PublicTypeEDATAResultAsLongbufAsString*MaxDataLenEndTypePublicTypeTEventEv...
//用VB调用是这样的
Public Type EDATA
Result As Long
buf As String * MaxDataLen
End Type
Public Type TEvent
EventType As Long
Data As EDATA
End Type
//VB的API声明
Public Declare Function TV_GetEvent Lib "dllname" (TV_Event As TEvent) As Long
我要用PB调这个API 该怎么声明这个TEvent参数,怎么声明函数呢,这个参数是要接收返回值的 展开
Public Type EDATA
Result As Long
buf As String * MaxDataLen
End Type
Public Type TEvent
EventType As Long
Data As EDATA
End Type
//VB的API声明
Public Declare Function TV_GetEvent Lib "dllname" (TV_Event As TEvent) As Long
我要用PB调这个API 该怎么声明这个TEvent参数,怎么声明函数呢,这个参数是要接收返回值的 展开
若以下回答无法解决问题,邀请你更新回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询