Programming Component Interfaces in COM

Programming Component Interfaces in COM
• Build the component interface APIs.
• Set up the COM environment.
• Generate a Visual Basic runtime code template.
• Use and understand the generated Visual Basic code.

Building the Component Interface APIs for COM


If you plan to access your component interface from a COM external application, you must
create a component interface API. The APIs are in the form of .reg file and typelib files.
To build the component interface bindings:
1. Open any component interface definition in PeopleSoft Application Designer.
Use any component interface definition, because you can build APIs for all of them,
regardless of which one is open.
2. Select Build, PeopleSoft APIs.
The Build PeopleSoft API Bindings dialog box appears.
3. Select the Build check box in the COM Type Library group box.
a. For the target directory, enter the directory in which you want the COM type library to
be created: typically \bin\client\winX86.
b. Enter the COM Server server DLL Location location to specify where the PeopleSoft
API Adapter (psapiadapter.dll) is located: \bin\client\winX86.
4. (Optional) Select the AutoRegister check box to execute the registry file immediately
upon building the API.

This causes your client machine registry to be immediately updated without having to
register it manually.
5. (Optional) Select the Clean-up Registry check box to clean up the registry if you’ve
applied previous versions of Peoplesoft_Peoplesoft.reg.
This is needed so that the older registry settings don’t remain and conflict with settings
made by the latest version.
6. Click OK to build the bindings that you selected.
The files that constitute the bindings are built in the location that you specified. If the
operation was successful, a Done message appears in the PeopleSoft Application Designer
Build window.