RPC HELP DLL GuideLines CPP Overview
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.
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: