Native Development (How Do I in Visual C+)
This page links to help on tasks related to native development using Visual C++. To view other categories of popular tasks covered in Help, see How Do I in Visual C++.
Win32
Windows API
Provides information about the application programming interfaces (API) supported by Microsoft Windows.What's New in the Windows API
Lists the latest additions to the Windows SDK.Overview of the Windows API
Lists all technologies that are covered by the Windows SDK documentation.Windows SDK Samples
Lists the samples that use the Windows SDK.
COM/ATL/MFC
COM (Component Object Model)
Introduces COM, a platform-independent, distributed, object-oriented system for creating binary software components that can interact.COM+ (Component Services)
Describes how COM+ builds on and extends applications written using COM, MTS, and other COM-based technologies.Compiler COM Support Samples
Lists the samples that demonstrate the Visual C++ compiler's built-in support for COM.ATL Tutorial: ActiveX Control in a Web Page
Leads you through the creation of an ActiveX control, demonstrating many ATL and COM fundamentals.Introduction to COM and ATL
Provides a brief introduction to COM and ATL.Programming with ATL and C Run-Time Code
Discusses the benefits of using the C Run-Time Library (CRT) with either static or dynamic linking, or alternatively using the _ATL_MIN_CRT macro to reduce your dependency on CRT code.ATL Samples
Lists the samples that demonstrate ATL.MFC Overview
Introduces the Microsoft Foundation Class (MFC) library.Hierarchy Chart
Graphically displays the MFC library.MFC COM
Describes MFC's support for COM.MFC Samples
Lists the samples that demonstrate MFC.Adding a Property Using Attributes
Demonstrates the steps needed to add a simple read-write custom property using attributes, and discusses the changes to the control project.Accessing All Members of a Collection
Shows how to iterate over the three main types of collections provided with MFC.Accessing File Status
Shows how to get the status of a file.Accessing Run-Time Class Information
Explains how to access information about the class of an object at run time.ActiveX Control Containers: Connecting an ActiveX Control to a Member Variable
Shows how to add a member variable to a dialog class.ActiveX Control Containers: Handling Events from an ActiveX Control
Discusses using the Properties window to install event handlers for ActiveX controls in an ActiveX control container.ActiveX Control Containers: Using Controls in a Non-Dialog Container
Shows how to dynamically create an ActiveX control in a non-dialog window.ActiveX Control Containers: Viewing and Modifying Control Properties
Discusses how to use the Visual C++ resource editor to view and change the properties supported by an ActiveX control.Adding Connection Points to an Object
Demonstrates how to create a control with support for connection points, how to add events, and then how to implement the connection point.Adding HTML Help Context-Sensitive Help to an Existing MFC Application
Shows how to add context-sensitive help in HTMLHelp format to an MFC application.Adding Items to the Header Control
Describes how to add a header item to a header control.Adding Tabs to a Tab Control
Describes how to add a tab item to a tab control.Automation Clients: Using Type Libraries
Describes how to create a dispatch class from a type-library (.tlb) file.Clipboard: Copying and Pasting Data
Describes the minimum work necessary to implement copying to and pasting from the Clipboard in your OLE application.Copying the Help Accelerator Resources
Shows how to copy the accelerator keys for Help resources.Copying the Help Menu Resources
Shows how to copy Help menu resources to your project.Copying the Help Message Map Commands
Shows how to copy help-related code to your project.Copying the Help Mode Toolbar Button
Shows how to copy the Help mode button to your project's toolbar resource from the HasHelp project toolbar resource, simply by dragging it.Copying the Help-Related String Resources
Shows how to copy the command IDs for Help-related menu items.Creating a CToolBarCtrl Object
Describes how to use a CToolBarCtrl object.Creating a Rebar Control
Describes how to use a CReBarCtrl object.Creating an Aggregated Object
Describes how to create an aggregated object.Creating an Extended Combo Box Control
Shows how to use an extended combo box control in a dialog box and in a non-dialog window.Creating the Date and Time Picker Control
Shows how to use a date-time picker control in a dialog box and in a non-dialog window.Creating the Header Control
Shows how to put a header control in a dialog box and in a view (but not a CListView).Creating the List Control
Shows how to use a list control in a dialog box and in a non-dialog window.Creating the Month Calendar Control
Shows how to use a month calendar control in a dialog box and in a non-dialog window.Creating the Tab Control
Shows how to use a tab control in a dialog box and in a non-dialog window.Deriving Controls from a Standard Control
Shows how to create a derived control class and place it in a dialog box.Displaying Context-Sensitive Help
Describes how to display context sensitive help from your application.Displaying F1 Help for a Dialog Box or Menu Option
Describes how to manually make the HTML Help viewer display.Enabling Tool Tips
Describes how to enable tool tips for the child controls of a window.Example: Displaying a Dialog Box via a Menu Command
Contains procedures to display a modal dialog box through a menu command and to display a modeless dialog box through a menu command.Inserting a Form into a Project
Shows how to easily insert an MFC-based form into your application.Manipulating the Progress Control
Lists the ways to change the current position of a progress control.MFC ActiveX Controls: Adding Another Custom Property Page
Describes how you can add property pages to an ActiveX control to display additional properties.MFC ActiveX Controls: Creating an Automation Server
Describes how to develop an MFC ActiveX control as an Automation server for the purpose of programmatically embedding that control in another application and calling methods in the control from the application.MFC ActiveX Controls: Using Data Binding in an ActiveX Control
Discusses data binding, which allows a property of a control to bind with a specific field in a database.Setting the Day State of a Month Calendar Control
Describes how to emphasize certain dates for the month currently displayed in a month calendar control.Setting Up a Static Link to the Registrar Code (C++ Only)
Shows how to create a static link to the Registrar's code.Testing Properties and Events with Test Container
Describes how to use the basic features of Test Container.Updating the Text of a Status-Bar Pane
Explains how to change the text that appears in an MFC status bar pane.Using a Common Control as a Child Window
Describes how to create a common control dynamically and then work with it.Using a Dialog Bar with a Rebar Control
Shows how to implement a transparent dialog bar in a rebar band.Using an Image List with a Rebar Control
Shows how to display images in a rebar band.Using CStatusBarCtrl to Create a CStatusBarCtrl Object
Describes how to use a status bar control with parts.Using CToolTipCtrl to Create and Manipulate a CToolTipCtrl Object
Shows how to create and manipulate a CToolTipCtrl.Using Drop-Down Buttons in a Toolbar Control
Describes how to implement a drop-down button.Using Image Lists in an Extended Combo Box Control
Describes how to associate an image list with an extended combo box control.Using Image Lists with Header Controls
Shows how to display an image in a header item.How to: Access ClassWizard and WizardBar Functionality
Discusses where ClassWizard and WizardBar functionality can be accessed in Visual C++.
C Runtime Library (CRT)
- Building the Run-Time Libraries
Shows you how to build your own copies of the C run-time library files.
Native Programming
DLLs
Discusses Dynamic Link Libraries (DLLs).DLL Frequently Asked Questions
Answers common questions concerning DLLs.STL Samples
Lists the samples that demonstrate the use of the Standard Template Library.
Precompiled Headers
Creating Precompiled Header Files
Describes how the Microsoft C and C++ compilers provide options for precompiling any C or C++ code, including inline code.When to Precompile Source Code
Describes when it is appropriate to use precompiled headers.Two Choices for Precompiling Code
Describes the two choices for precompiling code: automatic precompiling and manual precompiling.Precompiled Header Consistency Rules
Discusses guidelines that will help you use precompiled headers more efficiently.Using Precompiled Headers in a Project
Describes a method for using the manual precompiled-header options in a project.