How does SendMessage differs from PostMessage

In Windows programming, the way user can interact with an application is using Windows – User Interface element. How the interaction happen is, by sending messages or events to window or application. With every Windows application (Process) there is a primary thread associated with it. So thread is entity that can be scheduled for execution [...]

Continue reading →

MFC Win32 COM Windows Programming Questions

What is the base class for MFC Framework ? CObject 2. If i derive a new class from CObject what are the basic features my derived wil get ? Runtime class identification/ dynamic object creation (b) Synchronization (c) diagnostic support. 3. What is the use of CCmdTarget ? Command routing 4. What is document-view architecture [...]

Continue reading →

Adding multiple views to MFC SDI Application

There are two ways to add multiple views to MFC SDI applications based on specific scenarios as per your requirements. 1. Using with Splitter window When you have a requirement of dividing a single window into multiple halves and showing different representation into each halve, you can use Splitter windows. Basically splitter window creates the [...]

Continue reading →

C++ compile time and runtime polymorphism

C++ Polymorphism “Same thing behaving differently in different scenario’s.”  What does this mean in programming parlance?  Same object behaving differently (execute different code) at runtime based on some runtime values. For example a Shape object may draw a Circle, Rectangle or Triangle at runtime based some values. This is one of the core concepts of [...]

Continue reading →

Borland compiler

Borland is the company which creates compilers. Earlier, they released a version of C++ called Turbo C++ that was popular for programming in the DOS environment. Its webpage has the information of the compiler. They are too giving away a new version of the compiler Borland C++ 5.5 for free download. The registration on this [...]

Continue reading →

Assembler

A computer can only understand machine language and no other program. Hence, the programs written in other languages must be converted into the machine language of the computer. Machine language is the language which is directly understood by the computer. Such translation is performed with the help of the software. A program which translates an [...]

Continue reading →

Message passing in the Object Oriented Programming

An Object Oriented Programming consists of a set of objects that communicate with each other. The process of programming in an object- oriented language, involves creation of classes that define objects and their behavior, creating of objects from class definitions and establishment of communication among different objects. Objects communicate with one another b sending and [...]

Continue reading →

Polymorphism in Object oriented Programming

Polymorphism is another important OOP concept. Polymorphism, a Greek term, means the ability to take more than one form. An operation ay exhibit different behaviors in different instances. The behavior depends upon the types of data used in the operation. For example, consider the operation of addition. For two numbers, the operation will generate a [...]

Continue reading →
Page 3 of 5«12345»