COM – Creating a COM Component using C++ – Add Type Library to Visual Basic Application
In our previous article, we have created Type Library “Hello.tlb”. We were facing issues when we tried to add “HelloComponent.dll” as a reference to our...
COM – Creating a COM Component using C++ – Generate a Type Library
We have created our COM component using C++ and we have tested our COM component in C++ based client application. We found that our COM...
COM – Creating a COM Component using C++ – Summary of component development
Finally we have successfully developed our COM component HelloComponent using C++. Lets summarize how we developed our COM component in this article. Microsoft’s Component Object Model (COM)...
COM – Creating a COM Component using C++ – IClassFactory implementation
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...
COM – Creating a COM Component using C++ – IClassFactory
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...
COM – Creating a COM Component using C++ – Inside CoCreateInstance
As we discussed in our previous articles, COM’s CoCreateInstance function is used to create instances for COM classes. When the client program calls CoCreateInstance to create...
COM – Creating a COM Component using C++ – LoadLibrary
When we run our test application, we were getting a message “No such interface supported”. It seems, CreateInstance was failed to return the instance of the...
COM – Creating a COM Component using C++ – .def file
In previous article, we have created a test application to test our COM component. When we rant our test application, it was displaying “Class not registered” error...
COM – Creating a COM Component using C++ – CoCreateInstance
As of now we have created our COM component. Now it is the time to test our component. In this article we are going to...
COM – Creating a COM Component using C++ – Registering a COM component
In our previous article we have packaged a component into a DLL. Now we will look how to register the component. Registering a COM component...
COM – Creating a COM Component using C++ – DLL component
In series of articles on creating a COM Component using C++, in previous article, we have implemented a component using C++. The component implemented IUnknown standard...
COM – Creating a COM Component using C++ – IUnknown interface definition
This is the series of articles explaining creating a COM component using C++. In our previous article, we have defined an interface IHello and compiled...
COM – Creating a COM Component using C++ – IUnknown interface
COM (Component Object Model) is a platform-independent, distributed and object-oriented technology developed by Microsoft to create re-usable software components and enables software components to communicate....