CodeSteps

Python, C, C++, C#, PowerShell, Android, Visual C++, Java ...

MS-DOS – Writing a simple batch file

In MS-DOS, we can write DOS commands into a file and these commands are invoked when we run the file. Usually we can enter our command at DOS prompt. Once we enter the command, Operating System will execute the command and display the results on DOS console window. How do we enter multiple commands at […]

jQuery – Writing a simple “Hello, World!” program

jQuery is a JavaScript library designed to simplify client-side scripting. jQuery enables the writing of cross-browser-compatible JavaScript code. Without it, it is tedious to write cross-browser-compatible code with JavaScript. In this article, we will look at our “Hello, World!” program using jQuery. We can download the jQuery library from jQuery.com. Instead of downloading it, we can […]

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 goals of the COM is to locate the objects easily without worrying about where they are located and where they are housed; whether they are housed in in-process, local, or remote. in-process means, the […]

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. What is happening inside the CoCreateInstance function? When the client program calls CoCreateInstance to create an instance of COM class: It actually internally calls another function CoGetClassObject CoGetClassObject checks the registry entries for CLSID which was passed through […]

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 component. Before looking into the way CreateInstance creates an instance of our component; let us test our DLL by calling exported functions directly without the help of COM library. To do […]

Scroll to top