ADT2: Installing/Registering OLE Controls in Run-time AppLast reviewed: September 24, 1997Article ID: Q132128 |
The information in this article applies to:
SUMMARYModerate: Requires basic macro, coding, and interoperability skills. This article describes how to install and register an OLE control (.OCX) using the Microsoft Access Developer's Toolkit version 2.0 (ADT) Setup Wizard or a third-party installation program.
MORE INFORMATIONTo use an OLE control in a Microsoft Access run-time application, you must first install the OLE control and its support files; then, you must register the control in the REG.DAT file in the \Windows\SYSTEM directory. These two procedures are described in detail below.
Installing OLE Custom ControlsIf you plan to use a third-party installation program to set up your run- time application, make sure the OLE control and its support files are installed in the following directories:
Directory Filename Description ---------------------------------------------------------------------- \Windows\SYSTEM OC1016.DLL The OLE Control Support DLL shipped with the ADT. \Windows\SYSTEM OC25.DLL A support DLL required by controls created with the OLE Control Development Kit (CDK) for Microsoft Visual C\C++ version 2.0. If your control was not created with the CDK, this file is not needed. \<application> MSAREG.EXE The OLE Control registration tool. \<application> <control>.OCX The OLE Control file. \<application> DAO2016.DLL A DLL required for custom controls.If you plan to use the Microsoft ADT Setup Wizard to create your distribution disks, follow these steps to ensure proper installation of OLE controls:
Registering OLE ControlsIf you use the Microsoft ADT Setup Wizard to create your distribution disks, your OLE controls are registered automatically when you set up your run-time application. The Microsoft Access Setup program installs and runs the file MSAREG.EXE that registers any .OCX files you picked in the ADT Setup Wizard. If you plan to use a third-party installation program, make sure all OLE controls are registered properly in the REG.DAT file of the \Windows\SYSTEM directory. To register an OLE control, follow these steps:
ARTICLE-ID: Q123593 TITLE : ACC2: OLE 2.02 Required to Use Custom Controls REFERENCESMicrosoft Access "Advanced Topics," version 2.0, Chapter 6, "Using OLE Custom Controls," pages 166-175 For information about how to obtain the Microsoft Access Service Pack, please see the following article in the Microsoft Knowledge Base:
ARTICLE-ID: Q122927 TITLE : WX1124: Microsoft Access Version 2.0 Service Pack |
Additional query words: ADT20
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |