Sunday, August 5, 2012

C++ COM Basics Explained

Who might be interested in my COM Basic Page ?


I have been professionally involved in projects using COM Architecture. I had an initial training , very basic , before I started working. Now I have been almost 2 years working with COM and still get confused with many concepts. When I have people asking me 
  • Where is it in the registry ?
  • Why am I getting automation error ?
  • I registered the DLL but it still does not work...
  • It was working and then when I restarted I get Automation error ...
  • I have the class but the application says cannot load class ...
... and many others. Well some I can answer and some I cannot. But mainly what I am able to answer is because of a sort habit you might say. Just get it working. 

I have decided to jot down concepts from couple of resources that I found extremely useful. I will try to make my notes as simple as possible. I want even a person with very basic C++ fundamentals should be able to understand the concepts easily.

This COM Basic Tutorial is supposed to be very simple. 

I am making the page as a part of my hobby. Please provide your honest feedback and write comments. I will try to improvise according to the comments received.