Microsoft KB Archive/129943

= INFO: OLE Controls Must Be Registered =

Article ID: 129943

Article Last Modified on 5/6/2003

-

APPLIES TO


 * Microsoft Visual Basic 5.0 Control Creation Edition
 * Microsoft Visual Basic 5.0 Learning Edition
 * Microsoft Visual Basic 6.0 Learning Edition
 * Microsoft Visual Basic 5.0 Professional Edition
 * Microsoft Visual Basic 6.0 Professional Edition
 * Microsoft Visual Basic 5.0 Enterprise Edition
 * Microsoft Visual Basic 6.0 Enterprise Edition
 * Microsoft Visual Basic 4.0 Standard Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 Professional Edition
 * Microsoft Visual Basic 4.0 16-bit Enterprise Edition
 * Microsoft Visual Basic 4.0 32-Bit Enterprise Edition

-



This article was previously published under Q129943



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.

Additional query words: kbVBp400 kbVBp500 kbVBp600 kbVBp kbdsd kbDSupport kbRegistry kbControl

Keywords: kbinfo KB129943

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.