French, German, Italian, Japanese, Korean, Russian, Simplified Chinese, Spanish, Traditional Chinese The Microsoft Visual C++ 2010 Sample Library provides code examples for applications and tools showing the capabilities of Visual C++ and the libraries and technologies it supports. Visual Studio 2010 Samples are now live! Click on the links below to go directly to the individual technology pages for sample descriptions and individual downloads. Samples for VC 2010 can be found on the links below or the Downloads page. These samples may be modified by the VC team at any time, so you might want to check back occasionally for updates. This code may not work correctly, and the syntax shown in this code may change after the VS 2010 release.
Visual Studio 2008 C++ Samples can be found here. Please submit bugs through Connect, or provide comments in the discussion section of this site.
| Sample Name | Download Link | Description |
| All Samples | All Samples | Contains all Visual C++ 2010 samples. |
| ATL | ATL | Page contains samples that demonstrate Active Template Library (ATL) functionality. For more information, see the ATL Reference in the MSDN Library. |
| Attributes | Attributes | Page contains attributed versions of ATL samples. |
| CLR | CLR | Page contains samples that target the Common Language Runtime (CLR). For more information, see the Common Language Runtime topic in the MSDN Library. |
| Compiler | Compiler | Page contains samples that are related to the Visual C++ compiler as well as the Microsoft Macro Assembler. For more information, see the C/C++ Building Reference in the MSDN Library. |
| ComTypeLibfor7 | ComTypeLibfor7 | Page contains samples that demonstrate Component Object Model (COM) functionality. For more information, see Win32 and COM Development in the MSDN Library. |
| CRT | CRT | Page contains samples that demonstrate functionality of the C run-time library (CRT). For more information, see C Run-Time Libraries in the MSDN Library. |
| Debugging | Debugging | Page contains samples that extend the native debugger expression evaluator using the Expression Evaluator Add-In API. For more information on debugging, see Debugging in Visual Studio in the MSDN Library. |
| Events | Events | Page contains samples that demonstrate event handling. For more information, see Event Handling in the MSDN Library. |
| Extensibility | Extensibility | Page contains samples that demonstrate how to modify projects programmatically. For more information, see the Visual C++ Extensibility Object Model in the MSDN Library. |
| Fusion | Fusion | Page contains samples that demonstrate the fusion cache. |
| International | International | Page contains samples that demonstrate writing code for the international market. |
| Language | Language | Page contains samples that demonstrate major features of the C++ language. For more information, see the C++ Language Reference in the MSDN Library. |
| MFC | MFC | Page contains samples that demonstrate Microsoft Foundation Classes (MFC) functionality. |
| OS | OS | Page contains samples that demonstrate various Windows APIs. For more information, see Windows-Based Applications and Components in the MSDN Library. |
| Unix | Unix | Page contains samples that demonstrate mapping compiler flags from a Unix compiler to the Visual C++ compiler. |
DIA Stack Walking Sample DIA Stack WalkingDIA Stack Walking Sample Testcase DIA Stack Walking
|