Visual C++ 6.0 Introduction and Improvement

Author: None
Publisher:
Publish Date: None
Features: This book comprehensively explains the programming methods of Visual C++ 6.0, using numerous examples to illustrate the usage and techniques of MFC classes. It meticulously introduces various aspects, including basic C knowledge, the Visual C++ 6.0 programming environment, AppWizard, ClassWizard, advanced controls, database calls, multithreaded programming, and more, enabling you to master Visual C++ 6.0 effortlessly.
Author's Preface: The Preface to the "Software Beginners and Advanced Series"
The key challenge for most users when it comes to computers is learning how to use software. The vast range of software, rapid version updates, numerous function options, and bloated systems often leave users overwhelmed and unsure where to start. Yet, whenever you see professionals effortlessly navigating software, you can't help but admire their skills. "Fishing from the edge of a well is no match for tying a net." There is only one path: start using it! Choose the software you want to use and a good book, then sit down at your computer, turn it on, install the software, and follow the book's instructions to use and test it. Soon, you'll find that your computer becomes more responsive, and you'll be a skilled navigator, effortlessly maneuvering through the sea of software.
The launch of the "Software Beginners and Advanced Series" is designed to provide you with a navigator to explore the sea of software. It is a set of user-friendly guides that cover the most popular software today. You can learn step-by-step or refer to it as needed, ensuring you have a solid foundation and clear direction to quickly and efficiently master software operations and programming techniques, solving practical problems with ease.
Let's take a look at the features of this series.
Software Selection
The software selected in this series are renowned products from well-known domestic and international software companies, widely used in China, and stand out in their respective fields. Currently, the series covers major software categories such as operating platforms, office software, programming tools, database software, network and Internet software, multimedia and graphics software, and more. The series will also closely monitor the release of new software, promptly releasing companion books for newly launched products and those with narrower but technologically significant applications.
Version Selection
The series follows the principle of staying up-to-date with software releases, focusing on the latest versions released within the past six months and those be released in the next six months to ensure technical relevance. It also includes classic mainstream software, giving well-loved and widely recognized products their place. For software available in both Chinese and English versions, the Chinese version is prioritized to better serve Chinese users.
Target Audience
The series is clearly aimed at beginners and intermediate users. Whether you have experience with the software covered or not, this series is suitable for you. The "beginner" in the series name refers to the fact that each software explanation starts with basic knowledge and operations, allowing new users to easily get started without referring to other books. Experienced users can also quickly grasp the new features and functions of the latest version and smoothly transition to the next level. The "advanced" in the series name reflects the core content of the books. Based on our experience, software functions are becoming increasingly complex, and without reaching a certain depth and breadth, it's difficult to handle them effectively in real-world scenarios. Therefore, after guiding readers to quickly get started, the series teaches them more comprehensive software usage techniques and application skills through clear step-by-step instructions and typical application examples, enabling them to truly master the software and use it with confidence.
Content Design
The strategy for designing the content of this series is based on a thorough analysis of users' challenges in using software and the current state of the computer book market. In short, it is practical, clear, and thorough. It is neither a comprehensive "user manual" nor a detailed "function guide," but rather a highly effective operational and programming guide. All content is chosen based on users' actual needs, allowing readers to "focus on the essentials" and directly address their goals when faced with complex software systems. For each function explanation, the series provides clear step-by-step guidance and rich application examples to accurately tell you how to do it. As long as you follow the book's instructions and methods, practice, and master them, you can then apply what you've learned and achieve solid progress with ease.
Style and Features
The series strives for concise text, abundant illustrations, clear structure, and a vibrant layout. Additionally, it includes special sections designed to provide guidance beyond the main text. These sections include:
- Note – Alerts you to potential issues, common mistakes, and how to avoid them, saving you from frustration and the need for help.
- Tip – Suggests further chapters for deeper exploration or detailed information on specific topics, allowing you to learn at your own pace.
- Skill – Offers shortcuts and advanced techniques to help you work more efficiently and skillfully.
- Try It – Presents carefully designed exercises for hands-on practice. By following along, you can not only recreate the beautiful visuals from the book on your computer but also explore other implementation methods and outcomes not detailed in the text. The frequent "Try It" sections encourage you to learn by doing, gain insights, and discover new possibilities.
After extensive planning, design, and creation, this series has been launched and has received positive market response. Many books have been reprinted within two months, and the series has already sold over 160,000 copies in a short time. From numerous reader feedback cards and letters, we have received many valuable suggestions that have been immensely helpful to us. Rigorousness, practicality, high quality, and a refined taste have always been the traditions of Tsinghua University Press, and they remain our pursuit in planning and creating this series. Despite our best efforts, errors and shortcomings are inevitable. We sincerely appreciate your feedback and corrections, and we are committed to continuous improvement and higher quality in future work.
During the creation of this series, we received strong support from the Product Department of Microsoft China. We sincerely thank them for their assistance in providing software and technical materials, as well as reviewing the catalog.
The Editorial Committee of the "Software Beginners and Advanced Series"
January 1998
Excerpt: Basic Appearance and Operation of the Integrated Development Environment
The Microsoft Developer Studio window is quite complex, featuring multiple subwindows and toolbars, with subwindows further divided into tabs and options. To prevent users from feeling overwhelmed, it's necessary to introduce the various windows and toolbars of the integrated development environment first.
1.1.1 Text Window and Its Operation
The text window is typically located in the upper right part of the integrated development environment platform. Various program files, resource files, document files, and help information can be displayed in this window. Users can open multiple text windows simultaneously, and each window can be manipulated using standard Windows operations such as maximize, minimize, restore, close, move, and resize. You can also activate a desired window by selecting it from the Windows menu or by clicking on it with the mouse. For example, selecting the "Text1.cpp" menu item from the Windows menu makes the Text1.cpp window the active text window.
There are two other methods to switch to a text window:
- Method 1: Use the "Next" command (or shortcut Ctrl+F6) in the text window system menu to cycle through the open text windows.
- Method 2: Use the "Windows" command in the Windows menu, which opens a dialog box similar to Figure 1.1. In the "Select Window" list box, you can choose from the currently open text windows. The "Activate" button activates the selected window, while the "Close Window" button closes it. If the selected window is a program file or other editable document, you can also click "Save" to save it.
In the Windows menu, the "Cascade" command arranges the text windows in a stacked layout, while the "Close All" command closes all open text windows at once. When the active text window contains a document file, executing the "New Window" command in the Windows menu opens another window with the same document file content. For example, activating the Text1.cpp window and then using "New Window" will open a copy of Text1.cpp titled "Text1.cpp:2." Using "New Window" again will open additional copies like "Text1.cpp:3," "Text1.cpp:4," and so on, all with the same content.
The "Split" command in the Windows menu divides a program file window into four cross-shaped panes. These panes can be freely moved to adjust their sizes. When the split line is moved to a corner, the panes merge back into one. After splitting, the top two parallel panes can be scrolled together using the right-side scroll bar, as can the bottom two. The left and right panes can be scrolled independently using their respective lower scroll bars.
1.1.2 Workspace Window and Its Operation
The workspace window is typically located to the left of the text window. After loading a project, three icon tabs appear at the bottom of the window. Hovering the mouse over these tabs will display a tooltip explaining their functions. Generally, the workspace window has three icon tabs: ClassView (Class View), ResourceView (Resource View), and FileView (File View). Clicking an icon tab displays the corresponding page. For example, clicking the FileView icon tab will show the FileView page, allowing you to view the files in the project. Another way to switch to this view is by pressing Ctrl+PageUp or Ctrl+PageDown (note that the cursor cannot be in the right-side source file window).
The content of the page is displayed in folder form. By clicking the "plus" box next to a folder or double-clicking the folder name, you can open it to reveal its contents. If you double-click a bottom-level object, the corresponding editor will open, displaying an editing window. For example, in FileView, double-clicking a text file opens the source code editor; in ResourceView, double-clicking a resource opens the resource editor.
The position of the workspace window is not fixed. You can move it by:
- Clicking and dragging the window's border to the desired location.
- Activating the workspace window and pressing Shift+Esc.
- Clicking the workspace window button on the common toolbar.
- Right-clicking the workspace window's page and selecting "Hide" from the shortcut menu.
- Right-clicking the border of any toolbar, selecting "Project Workspace" from the shortcut menu.
If the workspace window is already hidden, you can make it reappear using:
- Clicking the workspace window button on the common toolbar.
- Selecting "Project Workspace" from the View menu or pressing Alt+O.
- Right-clicking the border of any toolbar, selecting "Project Workspace" from the shortcut menu.

📌 Related Posts