IPB_Session interface:
NewProxyObject method
Description
Creates a proxy for a remote object. The proxy is used to
extend the network protocol in PowerBuilder.
Syntax
1 |
NewProxyObject(pbclass <span>cls</span>) |
Argument |
Description |
---|---|
cls |
The type of object or structure instance |
Return Values
pbproxyobject.
Examples
This example creates a new proxy object, creates
a marshaler, and associates the marshaler with the proxy object:
1 |
pbproxyObject proxy = session-><span>NewProxyObject</span>(cls);<br>if (proxy == NULL)<br>{<br>   ci->returnValue->SetLong(kFailToCreateProxy);<br>   return PBX_OK;<br>}<br> <br>// Create MyMarshaler<br>MyMarshaler* marshaler = new MyMarshaler(env, <br>   proxy, obj);<br> <br>// Associate MyMarshaler with the proxy<br>session->SetMarshaler(proxy, marshaler);<br> <br>ci->pArgs->GetAt(0)->SetObject(proxy);<br> <br>ci->returnValue->SetLong(kSuccessful);<br> <br>return PBX_OK; |
See Also
Document get from Powerbuilder help
Thank you for watching.
Subscribe
Login
0 Comments
Oldest