RPC HELP DLL GuideLines CPP Overview

RPC Broker Help Home

DLL Interface Home Guidelines for C++ Overview The BAPI32.HPP header file defines a class "wrapper" around the RPC Broker 32-bit DLL, defining a TRPCBroker C++ class. Objects of this class include all functions exported in the DLL, as methods of the TRPCBroker C++ class. TRPCBroker C++ Class Methods One feature of wrapping a class around the RPC Broker 32-bit DLL is that all the ordinary details of working with a DLL (loading the DLL, getting the addresses of the functions in the DLL, and freeing the DLL) are done within the class definition. When you initialize the class, all of the details of loading and unloading the detail (LoadLibrary, GetProcAddress, and FreeLibrary) are done for you.

To use objects of the class, simply initialize the class, and then create and destroy objects of the class. To use the TRPCBroker C++ class that encapsulates BAPI32.DLL:
 * 1) Initialize the Class
 * 2) Create Broker Instances
 * 3) Connect to the Server
 * 4) Execute RPCs
 * 5) Destroy Broker Instances