Code Samples


The code for all recipes in the C# Programmer's Cookbook is available online at http://microsoft.com/mspress/books/6456.asp. To download the sample files, click the Companion Content link in the More Information menu on the right side of the page. This action loads the Companion Content page, which includes a link for downloading the sample files. To install the sample files, click the Download The Book's Sample Files link and follow the instructions in the setup program. A link to the sample code will be added to your Start menu.

The code is provided as a set of Visual Studio .NET 2003 solutions and projects organized by chapter and recipe number. Each chapter is a separate solution, and each recipe is a separate project within the chapter's solution. Some recipes in Chapter 11 and Chapter 12 that demonstrate network programming include separate projects that contain the client and server elements of the recipe's solution.

Although all samples are provided as Visual Studio .NET projects, most consist of a single source file that you can compile and run independent of Visual Studio .NET. If you are not using Visual Studio .NET 2003 you can locate the code for a particular recipe by navigating through the directory structure of the sample code. For example, to find the code for recipe 4.3, you would look up the code in the directory "Chapter04\Recipe04-03". If you use the command-line compiler, ensure that you include references to all required .NET class library assemblies.

Some of the sample applications require command-line arguments. Where required, the recipe's text will describe the arguments. If you are using Visual Studio .NET, you can enter these arguments in the project properties (under the Debugging node of the Configuration Properties item). Keep in mind that if you need to enter directory or file names that incorporate spaces, you will need to place the full name in quotation marks.

Some additional steps are required to install the two virtual directories used for the examples that accompany Chapter 7, "ASP.NET and Web Forms," and Chapter 12, "XML Web Services and Remoting." These steps are described in a readme.txt file provided with the downloaded code and on the code download page.




C# Programmer[ap]s Cookbook
C# Programmer[ap]s Cookbook
ISBN: 735619301
EAN: N/A
Year: 2006
Pages: 266

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net