
Visual C++ .NET
Your Visual Blueprint for Programming on the .NET Platform
Jeff Cogswell(Author)
Hungry Minds Inc,U.S. (Publisher)
Published on 15. April 2002
Book
Paperback/Softback
XII, 324 pages
978-0-7645-3644-1 (ISBN)
Description
In this one-of-a-kind book, each step is displayed with callouts to show you exactly where the action takes place on the screen. You'll find complete coverage of C++, including basics, strings, structures, converting data types, classes, debugging, event handling, and the .NET conversion. The accompanying CD is loaded with all of the code examples. This is the only visual reference for C++!
More details
Language
English
Place of publication
Foster City
United States
Publishing group
John Wiley & Sons Inc
Illustrations
1 CD-ROM
Dimensions
Height: 22.5 cm
Width: 20.5 cm
Weight
774 gr
ISBN-13
978-0-7645-3644-1 (9780764536441)
Schweitzer Classification
Person
JEFF COGSWELL is a software engineer, author, and consultant. A former teacher, Cogswell has written numerous books, including C++ All--in--One Desk Reference For Dummies (also from Wiley).
Content
How to Use This Book. 1. Getting Started with Visual C++ .Net. Introduction to Visual C++ .NET. Create a Visual C++ .NET Solution. Open a Visual C++ .NET Solution. Enter Visual C++ .NET Source Code. Save a Visual C++ .NET File. Compile a Visual C++ .NET File. Build a Visual C++ .NET Solution. Add a File to a Visual C++ .NET Project. 2. Working With C++ Basics. Introduction to Data Types. Create a Constant. Create an Enumeration. Create a Variable. Perform Simple Math. Branch Based on a Comparison. Make More Complicated Comparisons. Call a Function. Create a Function Prototype. 3. Controlling Program Flow. Create a for Loop. Create a while Loop. Create a do--while Loop. Create an if Statement. Create a switch Statement. 4. Programming With Structures. Declare a Structure Type. Create a Structure. Initialize a Structure. Access a Structure. Create an Array of Structures. Pass a Structure Pointer to a Function. Create a Structure Containing Functions. 5. Converting Data Types. Convert Data with C--Style Casts. Convert Between Pointers and Numbers. Convert Between Class Pointers. Convert Between Class References. Convert Between Classes Statically. Remove the Const Attribute with a Cast. Safely Cast a Base Class to a Derived Class. Cast Without Run--Time Checking. Replace Most C--Style Casts. 6. Understanding Pointers. Work with Pointers. Access Data through a Pointer. Work with new and delete. Create a .NET Pointer. Pass by Reference. Return a Pointer from a Function. Declare a Pointer to an Array. Declare a Structure Pointer. Perform Pointer Math. 7. Programming With Classes. Create a Class. Write a Constructor. Write a Destructor. Add a Member Variable. Add a Static Variable. Write Methods. Write Static Methods. Overload Methods. Specify Member Access. Add Friend Variables and Methods. Add a Nested Class. 8. Programming With Inheritance. Introducing Inheritance. Derive a Class. Initialize the Base Class. Call a Base Method. Create Classes Using Polymorphism. Create Abstract Classes. Derive a Class from an Abstract Class. 9. Debugging Your Program. Create a Debugging Executable. Step through a Program. Step into a Function. Watch a Variable. Set a Breakpoint. Run to the Cursor Location. 10. Programming With .Net Strings. Introduction to Strings. Create a String. Initialize a String. Change the Case of a String. Split a String. Extract Substrings. Compare Strings. Convert Numbers to Strings. Convert Strings to Numbers. 11. Programming With .Net Arrays. Introduction to .NET Arrays. Create a C++ Array. Create an Array of Pointers. Create a .NET Array. Manipulate a .NET Array. Create a Container. 12. Handling Errors with .Net Exceptions. Programming Exceptions. Catch an Exception with a try/catch Block. Throw an Exception. Using the .NET Exceptions. Write a .NET Exception Handler. Create an Exception Class. 13. Managing Files with .Net. Create a Text File. Open a Text File. Write to a Text File. Append to a Text File. Create a Binary File. Read a Disk Directory. Copy a File. Delete a File. Seek to Any Position in a File. Rename or Move a File. 14. Making a GUI with .Net. Create a Windows Form. Add a Button Control. Add a Label Control. Add a TextBox Control. Add a CheckBox Control. Add a GroupBox with RadioButton Controls. Add a PictureBox Control. Add a ListBox Control. Add a CheckedListBox Control. Add a ComboBox Control. Add a ProgressBar Control. Add an UpDown Control. Add an ImageList Control. Add a ListView Control. Add a TreeView Control. Add a RichTextBox Control. 15. Programming with .Net Dialog Boxes. Display a ColorDialog Dialog Box. Display an OpenFileDialog Dialog Box. Display a SaveFileDialog Dialog Box. Display a FontDialog Dialog Box. Display a PrintDialog Dialog Box. Display a Custom Modal Dialog Box. 16. Adding .Net Event Handling. Understand Events. Write an Event Handler. Respond to Mouse Events. Respond to Menu Events. Respond to Keyboard Events. 17. Using C++ Managed Extensions. Introduction to Managed Extensions. Using Managed Extensions. Add Managed Extensions to an Existing Project. Using Automatic Cleanup. Avoid Automatic Cleanup. Ensure that a Variable Does Not Move. Reference a Function with a Delegate. Create Properties for Managed Classes. Prevent Class Inheritance. Create Value Classes. Box a Value Class. Use a Keyword as an Identifier. Declare an Abstract Class. Handle Unsuccessful Casts. 18. C++ Quick Reference. .Net Programming Environment. Namespaces. String Reference. APPENDIX. What's on the CD--ROM. Using the E Version of the Book. End--User License Agreement. General Public License. Index.