Home > database >  Pb development RTX SDK SERVER error
Pb development RTX SDK SERVER error

Time:09-16

Using Tencent RTX v3.3 Server, based on the code, the SDk development manual compiled not past:

OLEObject RTXObj, RTXParams
Any RetCode
Int iRetObj
Int iRetParams
RTXObj=CREATE OLEObject
RTXParams=CREATE OLEObject

IRetObj=RTXObj. ConnectToNewObject (" rtxserver. RTXObj ")
IRetParams=RTXParams. ConnectToNewObject (" rtxserver. Collection ")


IF iRetObj & lt;> 0 THEN
MessageBox (" prompt ", "connection error!" )
The ELSE

RTXObj. Name="SMSOBJECT
"
RTXParams. Add (" SENDER ", "900")//SMS SENDER
'RTXParams. Add (" RECEIVER ", "1381234567138234")//'message RECEIVER
RTXParams. Add (" SMS ", "test")//'message content
RTXParams. Add (" CUT ", 0)//'1: automatic cutting SMS 0: don't CUT

RetCode=RTXObj. Call2 (& amp; H1001 RTXParams)
END the IF

The & amp; H1001 instead of decimal after, you can compile, but runtime to the external use of error function, the above is the sample code in the document, I have to do is send to remind, interest rates, I put the change as below, report is submitted to the adjustable external department function error:

OLEObject RTXObj, RTXParams
Any RetCode
Int iRetObj
Int iRetParams

RTXObj=CREATE OLEObject
RTXParams=CREATE OLEObject

IRetObj=RTXObj. ConnectToNewObject (" rtxserver. RTXObj ")
IRetParams=RTXParams. ConnectToNewObject (" rtxserver. Collection ")


IF iRetObj & lt;> 0 THEN
MessageBox (" prompt ", "connection error!" )
The ELSE
RTXObj. Name="EXTTOOLS
"RTXParams. Add (" USERNAME ", "1010")
RTXParams. Add (" MSGINFO ", "TEST")
RetCode=RTXObj. Call2 (8449, RTXParams)

IF RetCode<> 0 THEN
MessageBox (" test ", "error")
END the IF
END the IF

Which experienced help a look

CodePudding user response:

First of all, pb does not support hexadecimal, & amp; H1001 want to 4097, not 8449

Second, determine the iRetParams=RTXParams. ConnectToNewObject (" rtxserver. Collection ") of the return value is correct

CodePudding user response:

& H1001 is changed to decimal, 4097, the return value is also combined with judgment, is to call call2 go wrong,

CodePudding user response:

Trouble ask under the building or other warrior, RTX DLL is how registration? Why do I always tip can't find the input point registration
  • Related