Using the COM Client library

How you use the COM Client depends on your specific application development environment.

Using the library with Microsoft Visual Basic

About this task

To use the COM Client library with Microsoft Visual Basic:

Procedure

  1. Open your Visual Basic project in the Visual Basic interactive development environment (IDE).
  2. From the Project menu, click References.
  3. Select the check box next to the Content Classification 8.8 Client Library reference, and click OK.
  4. To view COM Client library classes and functions, press the F2 key to open the Object Browser, and select BNSCOMCLIENTLib from the list of library names.
  5. To refer to a class name, use BNSCOMCLIENTLib as the prefix, for example:
    Private m_objBnsConnectionPool As New BNSCOMCLIENTLib.BnsConnectionPool

Results

For a sample Visual Basic project, see the VBMatch sample application.

Using the library with Microsoft InterDev (ASP)

About this task

To use the COM Client library with active server pages (ASP):

Procedure

  1. View COM Client library classes and functions by clicking CTRL+ALT+B to open the Object Browser. Right-click in the Object Browser and select Select Current Packages/Libraries.
  2. When the names of available COM libraries is displayed, select the check box next to the library Content Classification 8.8 Client Library.
  3. To refer to a class name (for allocation), use the CreateObject function, with BNSCOMCLIENT as prefix, for example:
       Set Session("objConnPool") = CreateObject("BNSCOMCLIENT.BnsConnectionPool")
  4. To refer to an enumerated value (constant integer), use the numeric value rather than the enumerated value name. For example, instead of using the enumerated value E_BNS_SERVICE_UNAVAILABLE, use the constant integer 321. Use the Object Browser to map the enumeration values to numeric values.