Tag: IClassFactory interface

COM: Creating a COM Component using C++ (Part-11)

Finally we have successfully developed our COM component HelloComponent using C++. Lets summarize how we develop our COM component in this article. Microsoft’s Component Object Model (COM) is a specification to allow to write re-usable components and enables them to communicate each…

COM: Creating a COM Component using C++ (Part-10)

CoCreateInstance is depends on IClassFactory to create class instances. We have looked into IClassFactory‘s methods and we have implemented these methods in our previous article. Lets include IClassFactory‘s implementation into our HelloComponent. We already have HelloComponent‘s declaration in “HelloComponent.h” file and its…

COM: Creating a COM Component using C++ (Part-9)

In our previous article, we have identified that CoCreateFunction is requesting an instance of IClassFactory. Why CoCreateInstance is requesting an instance of IClassFactory? One of the goal of the COM is locate the objects easily without worrying about where they are located and…