CodeSteps

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

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 […]

MFC – CObject class – Enable Object Serialization

CObject supports object serialization. One of the MFC’s great feature, which allows to store and retrieve the object’s current state. To enable this feature in our code: We must add DECLARE_SERIAL macro into our class declaration. IMPLEMENT_SERIAL macro must be added into class implementation file. And override the Serialize member function. Lets extend our class […]

COM – Creating a COM Component using C++ – .def file

In the previous article, we created a test application to test our COM component. When we rant our test application, it was displaying a “Class not registered” error message. Before re-looking into our component and test application code; let’s understand in what scenarios this “Class not registered” error message occurred. One scenario is, unable to find the […]

JavaScript – Access HTML DOM (Document Object Model)

DOM (Document Object Model) is a standard, allows to dynamically access the HTML documents, it’s styles, content and structure. It also allows dynamically update the content. JavaScript is a dynamically typed, object-based scripting language that runs in a host environment, usually a web-browser. But, it also used for server-side programming. JavaScript supports HTML DOM; so […]

C++ – Calling Virtual functions from class Destructors

C++ allows virtual functions to resolve function calls at run-time. This is called late-binding. Like virtual functions, C++ allows virtual destructors to delete the objects properly in an inheritance hierarchy. C++ allows calling virtual functions from class destructors. But what will happen when it calls these virtual functions from class destructors? Let’s take an example, […]

Microsoft Project: Creating a Project Plan

Usually, each project is developed in multiple phases. Commonly the phases are: Initiation Planning Execution Monitoring & Controlling and Closing Project plans created with Microsoft Project contain tasks and each task can be entered into the different phases mentioned above. This article explains how to create a project plan using Microsoft Project. This article applies […]

Scroll to top