Distributing applications that use ActiveX controls
When you distribute your application, make sure you distribute the following files:
- The file that contains your ActiveX controls (usually .ocx)
- Your main program (.dbr)
- Any files on which your control depends. For example, for controls created with Visual Basic 6, you should redistribute MSVBVM60.DLL (the VB6 runtime) to ensure the target system has it.
If you redistribute shared DLLs (such as MSVBVM60.DLL), you must ensure that your installation either puts the file only in your software’s private directory or only replaces older versions of the same file.
The .ocx file (or whatever you named it) must be registered before it can be used. If you’ve written an installation script, make sure it registers the file. If not, you can do it manually as described in Registering an ActiveX control.