InvokeObjectFunction

PowerBuilder Native Interface

IPB_Session interface:

InvokeObjectFunction method

Description

Syntax

InvokeObjectFunction(pbobject obj, pbmethodID mid, PBCallInfo *ci)

Return Values

  • PBX_E_INVALID_ARGUMENT

  • PBX_E_INVOKE_METHOD_INACCESSABLE

  • PBX_E_INVOKE_WRONG_NUM_ARGS

  • PBX_E_INVOKE_REFARG_ERROR

  • PBX_E_INVOKE_METHOD_AMBIGUOUS

  • PBX_E_INVOKE_FAILURE

  • PBX_E_INVOKE_FAILURE

Examples

pbclass cls;
pbmethodID mid;
PBCallInfo* ci = new PBCallInfo;
pbint ret_val;

cls = session->GetClass(dwobj);
mid = session->GetMethodID
   (cls, "Update", PBRT_FUNCTION, "I");
session->InitCallInfo(cls, mid, ci);

session->InvokeObjectFunction(dwobj, mid, ci);

ret_val = ci.returnValue->GetInt();
session->FreeCallInfo(ci);
delete ci;
return ret_val;

See Also