Вы находитесь на странице: 1из 219
VISUAL Gt 6 FOR DUMMIES ic by Charles Wright ell BOOKS 1G Bow on Ne rldwide, An Int ‘a Grot wee ompa ny Foster City, CA Chicago, IL # Indianapolis, IN # New York, NY Table of Contents WAtrOAUCtION oo. ccecesesssscsssssscccscsesccsesssececeacceeee How This Book Is Organized .... Conventions Used in This Book The Icon Crew Part I: Getting to Know Visnal C++ ccsccccsccsceee Customizing the Developer's Workshop Customizing Toolbars... Adding tools to a toolba: Creating a toolbar Deleting a toolbar Displaying or hiding a toolbar Removing tools from a toolbar Renaming a toolbar.. Resetting a toolbar .. Menus .. Customizing the Tools menu The wizard bar action menu Project Wizards .. Starting Visual C++ Creating a desktop icon . Running Visual C++ from the Start me. Window Watching... The Editing window . Exploring the Workspace window The Output window .. Workspace pop-ups . Part II: Creating a New Application ...... Adding Files to a Project... Creating and adding new files Adding existing files Applications ............ Dialog-based applications Document applications Compiling and Running a Program Creating Applications Dynamic Link Libraries . MFC AppWizard.... Step 1: Selecting an application typ Step 2: Adding database support . Step 3: Using compound documents Step 4: Adding features to your application . More Step 4: Document template strings Fven more Step 4: Window styles... MW worn ms ARRBBNEESoooLVowmor] Visual C++ 6 Quick Reference Step 5: Comments and library options Step 6: Naming your classes Project Settings .. Utility Libraries Part IN1: Building and Debugging a Project... 33 Adding Classes to a Project... Adding an MFC class using the ClassWizard .. Adding a generic class Adding Document Templates Step 1: Adding a string table entry Step 2: Creating and adding a template Adding Functions to a Clas: Adding member functions Using virtual functions ... Adding Windows Message Handlers Adding a message handler with Clas: Adding a message handler with the Wizard Bar Breakpoints .... Setting breakpoints . Clearing breakpoints .. Conditional breakpoints Building an Application... Building a Debug version . Building a Release version The ClassWizard .... Compiling a Single File Debugging..... Editing Program Files . Error Handling ... Programming errors Syntax errors The catch statemen’ Searching for Text Bookmarks The Find comman: The Find in Files command and window Replacing text....... Stepping through a Program Stepping into a function Stepping over a function Stepping out of a function Watches .... Setting watches Clearing watches Using QuickWatch Wizard Bar

Вам также может понравиться