Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Newbie Question - Registering COM Objects

Newbie Question - Registering COM Objects

Newbie Question - Registering COM Objects

Hello All, I am new to COM Objects so please be patient.

My question is how to go about actually registering a COM object on the computer, so that you can then access it. I have heard a little bit about various methods, but I am looking for a clear cut process to achieve this. I am a COldFusion developer, so working with COM objects is a very new thing for me, and this is the first time I am attempting this. If anyone can describe the COM registration process, or point me to appropriate FAQ or other resource, it would be greatly appreciated.

Thank You,


RE: Newbie Question - Registering COM Objects

A properly constructed DLL having COM objects in it can self-register itself.  For DLLs, you can use the "regsvr32" program that comes with windows to invoke the DLL self-register function.  It is a command-line program.  Open a command line, change to the directory where your DLL is located, and run:


regsvr32 myobject.dll

Where "myobject.dll" is the name of your DLL.

For an EXE with COM objects, register the objects by running the program with the "/RegServer" command line option:


myobject.exe /RegServer

If you're not sure how to build the EXE or DLL in the first place, so that it supports self-registration, the best place to start, in my opinion, is to read a good book about COM.  If you're in a hurry, use something like Visual C++ to create a new COM object project.  This will generate a working skeleton of an EXE or DLL that comes with the self-registration code built-in.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close