This document describes how to register and deregister an out-of-process COM component (ActiveX exe. In Visual Basic, an external COM component corresponds to an ActiveX EXE file. More information
You can type these commands in the Command window, or click Run in the Windows Start Menu, and then type the command.
To register a component, enter the following command:
<Path> \ <mycomponent>/regserver
<Path> is the component path and <mycomponent> is the component name.
To log out of a component, type the following command:
<Path> \ <mycomponent>/unregserver
<Path> is the component path and <mycomponent> is the component name.
When you run EXE for the first time, the Visual Basic ActiveX EXE file is automatically registered. However, exe cannot be used as a COM server until the EXE is registered.
If you useProgramThe package and deployment wizard or application installation wizard distributes ActiveX EXE, which is automatically registered when the application is installed.
If you work in "Visual Basic integrated development environment (IDE)" and use the references (reference) dialog box to browse the File Location of unregistered ActiveX EXE, when you add an EXE to a project as a reference, you register the component.