RPC HELP DLL GuideLines C Create Broker Components: Difference between revisions
From VistApedia
Jump to navigationJump to search
Created page with " RPC Broker Help Home DLL Interface Home" |
No edit summary |
||
| Line 2: | Line 2: | ||
[[RPC_HELP_Other_DLL_Interface_List|DLL Interface Home]] | [[RPC_HELP_Other_DLL_Interface_List|DLL Interface Home]] | ||
<h2>C: Create Broker Components</h2> | |||
To create [[RPC_HELP_TRPCBroker|TRPCBroker]] components in your C program: | |||
'''1.''' Create a pointer for the [[RPC_HELP_TRPCBroker|TRPCBroker]] component: | |||
// Generic pointer for the [[RPC_HELP_TRPCBroker|TRPCBroker]] component instance. | |||
void * RPCBroker; | |||
'''2.''' Call the [[RPC_HELP_DLL_ExportFN_RPCBCreate|RPCBCreate]] method to create a [[RPC_HELP_TRPCBroker|TRPCBroker]] component and return its address into the pointer you created: | |||
// Create the TRPCBroker component instance. | |||
RPCBroker = RPCBCreate(); | |||
Now you can use the pointer to the created Broker component to call its methods. | |||
Latest revision as of 16:26, 8 July 2015
C: Create Broker Components
To create TRPCBroker components in your C program:
1. Create a pointer for the TRPCBroker component:
// Generic pointer for the TRPCBroker component instance. void * RPCBroker;
2. Call the RPCBCreate method to create a TRPCBroker component and return its address into the pointer you created:
// Create the TRPCBroker component instance. RPCBroker = RPCBCreate();
Now you can use the pointer to the created Broker component to call its methods.