InvokeRemoteMethod

PowerBuilder Native Interface

IPBX_Marshaler interface:

InvokeRemoteMethod method

Description

Syntax

InvokeRemoteMethod(IPB_Session *session, pbproxyobject obj, LPCTSTR methodDesc, PBCallInfo *ci)

Return Values

Examples

#include "sampleinclude.h"
#include <pbext.h>

class SampleMarshaler : public IPBX_Marshaler
{
private:
   string   d_mystring;
   long     d_mylong;

private:
   void myMethod(string arg1);

public:
   SampleMarshaler(
      string myString,
      long   mylong
      );
   ~SampleMarshaler();

   virtual PBXRESULT InvokeRemoteMethod
      (
      IPB_Session*   session,
      pbproxyObject  obj,
      LPCTSTR        methodDesc,
      PBCallInfo*    ci
      );


   virtual pbulong   GetModuleHandle();
   virtual void Destroy();};
PBXRESULT SampleMarshaler::InvokeRemoteMethod
(
   IPB_Session*   session,
   pbproxyObject  obj,
   LPCTSTR        methodDesc,
   PBCallInfo*    ci
)
{
   // method invocation
}

Usage

See Also