pb汉王人脸通
想请教各位下,pb在调用汉王人脸通HwDev_Execute 函数时,是怎么调用的?
我在申请时是这样声明的:
FUNCTION Integer HwDev_Execute(string DevInfoBuf, ulong DevInfoLen,string SendBuf,ulong SendLen,ref string RecvBuf[],ref ulong RecvLen,ulong lany) library "HwDevComm.dll" alias for "HwDev_Execute;ANSI"
我是这样调用的:
string RecvBuf[]
ulong RecvLen
string devInfo,cmdStr
devInfo = 'DeviceInfo(dev_id = "1" dev_type = "HW_HDCP" comm_type = "ip" ip_address = "192.168.1.3")'
cmdStr = "GetDeviceInfo()"
li_rtn = HwDev_Execute(devInfo,len(devInfo),cmdStr,len(cmdStr),RecvBuf[],RecvLen,0)
程序在执行到上一句时,会报错,
请问怎样处理,谢谢!
如果HwDev_Execute 函数声明改为:
FUNCTION Integer HwDev_Execute(string DevInfoBuf, ulong DevInfoLen,string SendBuf,ulong SendLen,ref string RecvBuf[],ref ulong RecvLen,ulong lany) library "HwDevComm.dll"
调用不会报错,但 RecvBuf[]的值取不到,不知道我哪里错了,
请各位帮忙解决,谢谢