Home > database >  Pb hanwang face
Pb hanwang face

Time:10-16

Want to consult everybody, pb in hanwang face tong HwDev_Execute function called, is how call?
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 blob

CodePudding user response:

I also changed to blob but RecvBuf [] value or not

CodePudding user response:

refer to the second floor yzm_lxp_2 response:
I also into a blob but RecvBuf [] value or take less than


Try to initialize the data first, and then call

CodePudding user response:

Excuse me, how to initialize the data?

CodePudding user response:

What is HwDev_Execute function of VC statement?

CodePudding user response:

Previously written rovio
Pictures have pointer (ref blob pImage) type,
Before you call to assign pImage space
PImage=blob (space (space))
You can refer to

CodePudding user response:

The ref string RecvBuf [] array of try to array, and then call before use space allocated enough space to RecvBuf
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"

CodePudding user response:

Also want to do this, of attention recently

CodePudding user response:

There are random demo

CodePudding user response:

I am in distress this problem, hanwang provide random DEMO without PB,
  • Related