RPC HELP DLL GuideLines C Create Broker Components

From VistApedia
Revision as of 16:26, 8 July 2015 by Kdtop (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

RPC Broker Help Home

DLL Interface Home

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.