CallProcedure in C++ still difficult

Dejan_NL

Member
Hallo people,

I'am a Delphi fan but now i have to work i C++ 6.

I have one problem with calling CALLPROCEDURE in DOA.

I read some topics on your website about this issue but it still doesn't WORK.

Here is my problem:

These are the parameters in ORACLE
------------------------------------
PROCEDURE INIT
(P_CHARGEID IN e_charges.chargeid%type
,P_CHARGETEMPID OUT e_chargestemp.chargetempid%type
,P_ERRCODE OUT NUMBER
,P_ERRMSG OUT VARCHAR2
,P_COMMIT IN BOOLEAN := TRUE
)
IS

------------------------
This is what i use to call this procedure:

Variant Params[]= {"P_CHARGEID", charge_id};
dmMain->opgHMG->CallProcedure("INIT",EXISTINGARRAY(Params));

charge_temp = dmMain->opgHMG->GetFloatVariable("P_CHARGETEMPID");
ErrCode = dmMain->opgHMG->GetFloatVariable("P_ERRCODE");
Errmsg = dmMain->opgHMG->GetStringVariable("P_ERRMSG");

PLEASE TELL ME WHAT IS WRONG!!!!
 
You will have to supply array elements for the output parameters as well:
Output parameters can be declared during the function or procedure call by passing a parString, parInteger, parFloat, parDate or parBoolean constant instead of a value. Values of output parameters can be retrieved after a function or procedure call with the GetParameter method.
The GetFloatVariable calls apply to global package variables, and do not apply to parameters.
 
Back
Top