Visual Basic: Create Broker Components


To create TRPCBroker components in your Visual Basic program:

  1. Create a variable to be a handle for the TRPCBroker component.
        Public intRpcbHandle As Long
  2. Call the RpcbCreate method to create a TRPCBroker component and return its address into the variable you created:
        intRpcbHandle = RpcbCreate()

Now you can use the handle to the created Broker component to call its methods.