作者p902432 (YMC)
看板Visual_Basic
标题[VBA ] VBA Declare 问题
时间Wed Oct 24 16:21:15 2018
请问我有一个函式如下:
int32 HID_API_TI_EXPORT_CALL TI_Adapter_read_Word(Uint8 in_dev_addr, Uint8 in_command_code, Uint16 * out_data, Uint8 * out_pec);
我在程式里面宣告成如下:
Private Declare Function TI_Adapter_read_Byte Lib _
"D:\CP_I2C.dll" _
(ByVal in_dev_addr As Integer, _
ByVal in_command_code As Integer, _
ByRef out_data As String, _
ByRef out_pec As String) _
As Integer
但编译是错误的,告知型态不符合,请问一下该如何修正?谢谢。
--
※ 发信站: 批踢踢实业坊(ptt.cc), 来自: 61.216.85.241
※ 文章网址: https://webptt.com/cn.aspx?n=bbs/Visual_Basic/M.1540369278.A.959.html