Content Summary

 

The early chapters of this book were written for those who are new to programming, but they are enjoyable reading for all. A summary of the chapters follows :

Chapter 1 ” A Quick Dash through the Second Half of the Twentieth Century . How we got where we are today in digital computing.

Chapter 2 ” Personal Communication with a Digital Computer . The evolution of the keyboard and the mouse.

Chapter 3 ” The Microsoft Integrated Development Environment (IDE) . The Microsoft IDE is couched within the Microsoft Visual Studio suite, where programmers install compilers to create computer programs in multiple languages, like Basic, the variants of C, and Java. This chapter emphasizes the minimum number of features in the Visual Studio Suite IDE that a programmer must master to build acceptable programs. It includes an IDE walk-through and directions on how to create your first program.

Chapter 4 ” Cloning an Existing Project . Once you create a project in the IDE, you cannot move the project folder elsewhere on your hard drive and continue to communicate between the IDE and that project (because the pathing information is now befuddled). We show you how to clone a project, move it elsewhere, and retrofit it to do further work.

Chapter 5 ” Passing Information between Windows . In many of today s C class compilers the architects made it easy for programmers to pass objects between windows by including the *.h declarations files. Not so with Visual Studio C#! The programmer must first create a handle to the main window that owns the necessary object, pass that handle to each new child window that is created, and allow the child windows the proper access to that object through the main window handle. Also, the in-direction symbol (->) is not used in Visual Studio C#.

Chapter 6 ” Visual Studio C# Code Placement . This chapter discusses features of C# that differ from C++, along with new features. It is aimed primarily at the new programmer, and includes a tutorial called CodePlacement. We suggest that the CodePlacement project be placed in the Visual Studio Microsoft IDE main window and exercised as you read this chapter.

Chapter 7 ” Classes, Constructors, Overloading, and Help . This is a short discussion of the Visual Studio C# classes, object-oriented programming, overloading of C# functions, and the help tools available within the IDE.

Chapter 8 ” Data Types and Declarations . The common Visual Studio C# data types, Hungarian notation, where to place declarations in the source code, variable declarations, and enumerations.

Chapter 9 ” Conversions between Data Types . The specific statements that convert a given data type to any other data type. Also, ANSIString operators are listed.

Chapter 10 ” String Manipulation and Online Data Storage . Manipulating the characters within a string, and the declaration, use, and operation of arrays.

Chapter 11 ” Branching and Looping . if, for, foreach, while, do while, break, goto, and switch case.

Chapter 12 ” Arithmetic . Addition, subtraction, multiplication, division, exponentiation, logarithmic , and arithmetic parentheses.

The remaining chapters discuss specific programming topics:

Chapter 13 ” Message Boxes . Both the simple message box that is used for information only and the more complex message box that requires a reply by the user are discussed. This chapter includes an example of a general-purpose message box that can be used whenever the standard message box construct does not meet the programmer s needs.

Chapter 14 ” Displaying Data (Lists) on a Window . This is a demonstration of how to set up a window (form) to display text.

Chapter 15 ” Plotting Data on a Window . The art of creating a primitive but respectable-looking X-Y plot on a window is demonstrated.

Chapter 16 ” Printing Text . Printing text onto a sheet of paper.

Chapter 17 ” Creating, Reading, and Writing Files . One way to create, read, and write to a file.

Chapter 18 ” Menus (Main and Pop-up) . The IDE, in conjunction with the Visual Studio C# compiler and attached IDE tools, presents the simplest methods for preparing both main and pop-up menus that you have ever experienced . Both main and pop-up builds are demonstrated.

Chapter 19 ” Standard Controls . The standard controls that a programmer may place onto a window have not changed with the advent of C#. A new item called a Tab control is now available and easy to construct within the IDE. This chapter summarizes all the controls available for Windows programming to date.

Chapter 20 ” Logical Statements, Enabling and Disabling Controls, and Focus . There are few surprises in this chapter. Logic statements have not changed with the advent of C#. Enabling and disabling controls have changed only in the explicit construct of the enable-disable statement. Placing the focus onto a particular control on a window has been relaxed somewhat by the C# compiler, and this produces both good and bad situations. An example is shown where improper focus causes problems in a project.

Chapter 21 ” Timers and Clocks . The constructs for both timers and clocks in Visual Studio C# are much simpler than their counterparts in C and C++. Both constructs are demonstrated.

Chapter 22 ” Utilizing IDE Visual Studio C# Prebuilt Code . This is a cursory look into the common dialogs found in C#.

Chapter 23 ” Creating a Top-Level Program for Groups of Executables . This topic was included at the request of programmers who are responsible for writing the entry point for a group of Windows programs. The concept is simple and the code is simple ” simple and repetitive.

Chapter 24 ” Creating a Project Icon . This is a not-so-simple task if you have never done it before. The code to place a project icon on the desktop is now considered a deployment task and is discussed in the next chapter.

Chapter 25 ” Creating an Install Program . If you ever need to create a stand-alone set of programs that form a new application for PCs and so forth, then you will need the information found in this chapter. The formal deployment process as created by Microsoft is discussed.

Chapter 26 ” Methods (Subroutines) . Every compiler has its rules about including freestanding subroutines (now called methods or procedures) in the collection of source code statements. This chapter shows how to create a simple freestander that is available to all code that supports all the windows in a project.

Chapter 27 ” Game-Making and Animation . Demonstrations of simple game-making and animation.

Chapter 28 ” Picture Boxes . A short discussion of the PictureBox control in the IDE toolbox.

Chapter 29 ” Lost Controls/Graphics . Performing damage control on projects that lose controls or graphics.

Appendix A ” A Description of Keeping Track .

Appendix B ” C++ to C# Cross Reference .

 


Unlocking Microsoft C# V 2.0 Programming Secrets
Unlocking Microsoft C# V 2.0 Programming Secrets (Wordware Applications Library)
ISBN: 1556220979
EAN: 2147483647
Year: 2005
Pages: 129

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