I'm applying for is such a statement:
The 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
"I am such a call:
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)
Procedure when performing up to 1, complains,
How to deal with, please, thank you!
If HwDev_Execute function declarations to:
The FUNCTION of Integer HwDev_Execute (string DevInfoBuf, ulong DevInfoLen, string SendBuf, ulong SendLen, ref string RecvBuf [], ref ulong RecvLen, ulong lany) library "HwDevComm. DLL
"Call not an error, but RecvBuf [] take less than value, don't know where I am wrong,
Ask everybody to help solve, thank you
CodePudding user response:
Try to ref string parameter into a blobCodePudding user response:
I also changed to blob but RecvBuf [] value or notCodePudding user response: