Invoke

PowerBuilder Native Interface

IPBX_UserObject interface:

Invoke method

Description

Syntax

Invoke(IPB_Session * session, pbobject obj, pbmethodID mid, PBCallInfo *ci)

Return Values

Examples

PBXRESULT PBNIExt::Invoke
   (
   IPB_Session   *session,
   pbobject   obj,
   pbmethodID   mid,
   PBCallInfo   *ci
   )
{
   PBXRESULT result = PBX_OK;

   switch (mid)
   {
   case mFuncA:
      result = FuncA(session, obj, ci);
      break;
   case mFuncB:
      result = FuncB(session, obj, ci);
      break;
   case mFuncC:
      result = FuncC(session, obj, ci);
      break;
   default:
      result = PBX_E_INVOKE_FAILURE;
      break;
   }

   return PBX_OK;
}

See Also