CodeSteps

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

MFC – How to create user-defined messages and their message handlers?

Windows based user interface applications are message driven. When a message is generated, its associated message handler will be executed. MFC (Microsoft Foundation Classes) framework enables to write message driven applications more easily. MFC provides CCmdTraget class for this purpose. In this article I am going to explain the steps to create user-defined messages and […]

C Programming – Using bitwise operators

C provides bitwise operators to deal with bits. Each bit is either “0” or “1”. In this article, we are going to discuss how to use bitwise operators in C. C provides the following bitwise operators. & (Ampersand – Bitwise AND Operator) | (Pipe Symbol – Bitwise OR Operator) ^ (Cap Symbol – Bitwise XOR […]

MFC – CObject class – Enable Dynamic Object creation

As of now, we have discussed CObject class features “run-time class information” and “serialization support” in our previous articles MFC – CObject class – An Introduction – Enable Run-time class information and MFC – CObject class – Enable Object Serialization respectively. In this article, I am going to discuss CObject‘s another feature “dynamic object creation”. […]

C Programming – Dealing with files using un-buffered functions

As part of this series of articles, we are discussing buffered and un-buffered functions dealing with file management. We already discussed buffered functions in our previous articles and started discussing un-buffered functions. We have seen open and close functions in the previous article. In this article, we will discuss a few more un-buffered file management […]

Visual C++ – How to create modal dialog and modeless dialogs using MFC ?

MFC (Microsoft Foundation Classes) provides classes to deal with dialogs. Dialog boxes are very useful to take user inputs, displaying and allowing the users to change configuration settings, displaying messages or warnings or errors etc.,. Dialogs are classified into two types depending on their behavior. One is modal dialog and another one is modeless dialog. […]

Scroll to top
Exit mobile version