Registering a COM Component

This article has two sections:
See the sample or the readme.

Why register COM components?

The registry is a system database that holds configuration information. The registry provides necessary bindings between identifiers for COM components and the implementation for that component. COM components need to be in the registry to be created.

Typically, a vendor registers COM components as part of the installation process. For this sample, there is no installation program, therefore, you must register the COM component yourself.

Return to the top of this article.


Using RegSvr32

REGSVR32.EXE is a tool that registers server DLL files. The DLL must include self-registration information. All ActiveX controls and many other COM components (in-process servers) are self-registering.

To run RegSvr32:

To register the COM component for JavaCallingCom:
  1. Create a command window.
    From the Start menu, select Programs.
    Select MS-DOS Prompt or Command Prompt, depending on the version of the operating system.
  2. In the command window, run RegSvr32.
    See the directions listed earlier, substituting comserver.dll for servername.

Return to the top of this article.