ActivePatch Developer's Guide - Library and Visual Basic

ActivePatch includes both an ActiveX control and a standard Windows dynamic link library, and in most cases those developers who are programming in Visual Basic will benefit from using the control. However, there are those situations in which a Visual Basic programmer may prefer to use the library over the control.

ActivePatch does not come with Visual Basic modules which provide function declarations and constants. Instead, this information is provided as a type library, which is part of the library itself. To use the ActivePatch library in your Visual Basic programs, you need to create a reference to it in your project. To do this, follow these steps:

  • Open your current project or create a new project.
  • Select the Project|References menu option which will display a dialog box that lists the currently selected and available references.
  • If the ActivePatch Library is listed as an available reference, select it. If it is not listed, click on the browse button and choose the APATCH.DLL file.

Note that there may be another reference to the ActivePatch Control. You do not want to select this since it refers to the ActiveX control, not the library. Once the library has been referenced, you will be able to use the functions and constants detailed in the technical reference.