InvokeRemoteMethod
Description
Used in PowerBuilder marshaler native classes to call remote
methods.
Syntax
|
1 |
InvokeRemoteMethod(IPB_Session *session, pbproxyobject obj, LPCTSTR methodDesc, PBCallInfo *ci) |
|
Argument |
Description |
|---|---|
|
session |
This IPB session |
|
obj |
The proxy object for the remote |
|
methodDesc |
An arbitrary string stored as an alias name for the |
|
ci |
The parameters and return value setting for the |
Return value
PBXRESULT.PBX_OK if the call succeeded.
Examples
This example shows a header file for a sample marshaler
class:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#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(); }; |
The associated C++ implementation file contains code like
this:
|
1 2 3 4 5 6 7 8 9 10 |
PBXRESULT SampleMarshaler::InvokeRemoteMethod ( IPB_Session* session, pbproxyObject obj, LPCTSTR methodDesc, PBCallInfo* ci ) { // method invocation } |
Usage
You must implement this method in the marshaler native
class.
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest