CodeSteps

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

Author : venkat

C++ – Class Constructors

In C++, class constructors are special kind of methods to instantiate a class. When the class’s object is going to create, C++ will first call the class’s constructor to initialize the class. Initializing the class means, assigning its members and allocating any dynamic memory, etc., After the class’s constructor is called, the class’s object creation […]

MFC – Convert C++ Class to MFC based class

Microsoft Foundation Classes (MFC) are used to develop Windows based applications. MFC supports Document-View architecture; where data management separates from presentation layer. MFC wraps portions of Windows API C++ classes and enables to use them easily. In this article, we will discuss how to enable MFC to a simple C++ class. Let’s take a simple […]

C++ – How to define virtual functions?

C++ is a Object Oriented language. C++ uses virtual keyword in different places. One of the use of virtual keyword is to create virtual functions. An important feature in Object Oriented programming is Polymorphism; which means multiple-behaviors. An object has multiple behaviors and it shows particular behavior depending on its context. C++ achieves this with […]

COM – Creating a COM Component using C++ – IUnknown interface

COM – An introduction 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. COM enables interaction between objects through interfaces. Interfaces are core concepts to build COM components. An interface contains function prototypes only not the function implementations. COM […]

C++ – Pure Virtual functions

C++ Pure Virtual functions are used to create an abstract classes or interfaces. Pure Virtual functions have no function definition; just the function will be declared and the definition left to the derived classes. In C++, like Java, there is no interface keyword to create an interface. To create an interface in C++, the option […]

Scroll to top