INFO: OLE Controls Must Be Registered

Last reviewed: July 11, 1997
Article ID: Q129943
The information in this article applies to:
  • Microsoft Visual Basic Control Creation, Learning, Professional, and Enterprise Editions for Windows, version 5.0
  • Standard, Professional, and Enterprise Editions of Microsoft Visual Basic, 16-bit and 32-bit, for Windows, version 4.0

SUMMARY

OLE Controls (.OCX files) are OLE servers, so they must be listed in the registry. Visual Basic applications require an installation process to ensure that the necessary items are properly registered. During the setup process, if an OLE Control is needed and not registered, Visual Basic uses the auto-registration facility to automatically register an OLE Control by searching along the normal DLL search path for a file with the OLE Control name. This is done both in the design environment and for built executables. If the OLE Control is properly registered by other means, it need not be on the DLL search path.

If Visual Basic does not reside on a computer, any Visual Basic application targeted to be run on that computer must be installed through the setup process. It cannot be simply copied.

MORE INFORMATION

The DLL Search Path for 16-bit Windows is:

  1. The current directory.

  2. The Windows directory.

  3. The Windows system directory.

  4. The directory containing the executable file for the current task.

  5. The directories listed in the PATH environment variable.

  6. The list of directories mapped in a network.

Under 32-bit Windows, the DLL Search path is:

  1. The directory from which the application loaded.

  2. The current directory.

  3. The 32-bit Windows system directory.

  4. The 16-bit Windows system directory.

  5. The Windows directory.

  6. The directories that are listed in the PATH environment variable.


Keywords : APrgOther PrgCtrls vb4all vb4win vb5all VBKBError VBKBRegistry kbinfo
Technology : kbole


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: July 11, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.