NewProxyObject
Description
Creates a proxy for a remote object. The proxy is used to extend
the network protocol in PowerBuilder.
Syntax
|
1 |
NewProxyObject(pbclass cls) |
|
Argument |
Description |
|---|---|
|
cls |
The type of object or structure instance to be |
Return value
pbproxyobject.
Examples
This example creates a new proxy object, creates a marshaler, and
associates the marshaler with the proxy object:
|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
pbproxyObject proxy = session->NewProxyObject(cls); if (proxy == NULL) { ci->returnValue->SetLong(kFailToCreateProxy); return PBX_OK; } // Create MyMarshaler MyMarshaler* marshaler = new MyMarshaler (env, proxy, obj); // Associate MyMarshaler with the proxy session->SetMarshaler(proxy, marshaler); ci->pArgs->GetAt(0)->SetObject(proxy); ci->returnValue->SetLong(kSuccessful); return PBX_OK; |
See also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest