How to: Download Sample Files in Help Topics
You can use the Sample Viewer to copy source files for a sample to your computer so you can later open them in Visual Studio. You can also view a sample's nonbinary source files directly in Help.
Samples are stored in .zip files. You must have software installed on your computer for unzipping the files. Windows 2000 does not include an unzip utility by default but later versions of Windows do.
Copying sample files
You can copy sample files to your computer so you can open and edit the samples in the integrated development environment (IDE).
To copy a sample's source files to your computer
In the document window, click the Download Sample button located at the top of the Sample Files list window.
Unzip the sample file.
Depending on the version of your operating system, the sample files might be automatically unzipped for you; you might also be prompted to unzip the files using a utility. In other cases, you might be required to unzip the files manually
The files are copied to the location you specified. You can open the sample later, either directly from the IDE or from the location you specified.
Opening sample files in the IDE
Once you have copied the sample's files to your computer or network share, you can then open the files in the IDE.
To open sample files in the IDE
Launch Visual Studio.
On the File menu, click Open Project.
In the Open Project dialog box, browse to the location where you saved the sample files and then select the *.sln or *.*proj file for the sample.
The solution, project, and related files are displayed in Solution Explorer. You can now edit and build the files for the sample.
Viewing nonbinary source files
You can open nonbinary source files directly from the Sample Viewer.
To view a nonbinary sample source file
In the Sample Files list window, select the file you want to view.
Click the Open button located at the top of the Sample Files list window.
The contents of the file are displayed in the document window.