This documentation is archived and is not being maintained.

Windows Applications (How Do I in Visual C++)

Visual Studio 2008

This page links to help on tasks related to creating Windows applications using Visual C++. To view other categories of popular tasks covered in Help, see How Do I in Visual C++.

Windows Forms Walkthroughs and How-to Topics

Lists the Windows Forms walkthroughs that will help you effectively implement Windows Forms in your Visual C++ application.

Code for Windows Forms Applications

Lists the code examples that demonstrate how to perform common programming tasks in Windows Forms applications.

MFC Fundamentals

Introduces MFC and the fundamental support for programming for Microsoft Windows that it provides.

CWinApp: The Application Class

Discuses CWinApp, the main application class in MFC that encapsulates the initialization, running, and termination of an application for the Windows operating system.


Introduces the MFC collections used to manage groups of objects.

MFC Internet Programming Tasks

Contains detailed steps for adding Internet support to your applications.

Serialization: Making a Serializable Class

Lists the five main steps required to make a class serializable.

Document Template Creation

Describes creating a document using a Document Template.

Document/View Creation

Summarizes the types of documents that are created by an application object, a document template, a newly created document, and a newly created frame window.

Creating New Documents, Windows, and Views

Illustrates the creation process for documents, views, and frame windows.

Exported DLL Function Entry Points

Describes the AFX_MANAGE_STATE macro used to maintain the proper global state when switching from the DLL module to the calling application's DLL.

Window Procedure Entry Points

Describes how the Windows entry point is determined.

Idle Loop Processing

Focuses on using idle processing to perform lengthy processing "in the background."

Exception Handling in MFC

Explains the exception-handling mechanisms available in MFC.


Describes the Microsoft Messaging Application Programming Interface (MAPI) for client message application developers.

How MFC Makes It Easier to Create Internet Client Applications

Describes how MFC abstracts the Internet protocols for HTTP, FTP, and gopher into a high-level application programming interface, providing a fast and straightforward path to making applications Internet-aware.

Declaring Message Handler Functions

Lists the rules and conventions that govern the names of message-handler functions.

How to: Display Command Information in the Status Bar

Describes how to use the status bar to provide helpful feedback as the user of your application moves the mouse through items in the menus.

Deriving a Class from CObject

Describes the minimum steps necessary to derive a class from CObject.

Do I Have to Derive New Classes from CObject?

Explains when you might want to derive your class from CObject.

What Does it Cost me to Derive a Class from CObject?

Describes the overhead associated with deriving from CObject.