How to register and deregister an out-of-process COM component (ActiveX exe)

Source: Internet
Author: User
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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.