RAD Studio |  |

Registering a COM Object
Registering an in-process server | Registering an out-of-process server
Collapse All

You can register your server object as an in-process or an out-of-process server. For more information on the server types, see In-process.

Note: Before you remove a COM object from your system, you should unregister it.
Registering an in-process server

To register an in-process server (DLL or OCX), choose RunRegister ActiveX Server.

To unregister an in-process server, choose RunUnregister ActiveX Server.

Registering an out-of-process server

To register an out-of-process server, run the server with the /regserver command-line option. You can set command-line options with the RunParameters dialog box. You can also register the server by running it.

To unregister an out-of-process server, run the server with the /unregserver command-line option.

As an alternative, you can use the tregsvr command from the command line or run the regsvr32 command from the operating system.

Note: If the COM server is intended for use under COM+, you should install it in a COM+ application rather than register it. (Installing the object in a COM+ application automatically takes care of registration.)

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!