Home > database >  Pb hanwang face
Pb hanwang face

Time:09-18

Want to consult everybody, pb in the calling HwDev_Execute function, is how to call when I'm applying for is such application:

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)

Complains,

How to deal with, please, thank you!
If the application is changed 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 value less than [], ask everybody to help solve, thank you

CodePudding user response:

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
"
Using this, put recvbuf initialized at the beginning, then try calling again
  • Related