Chinese name: 0 Basic Learning Visual C + + Electronic Tutorials/Books CD
Resource Type: ISO
version: Electronic tutorials/CD with books
Release Time: December 2007
Area: Mainland
language: Mandarin
Brief Introduction:
Publishing House: Machinery Industry Publishing House
Author: Zhenghui, Fan/
Release Date: December 2007
The essence of the book
Development environment, projects, resources
Engineering wizards, WIN32 Console, MFC application framework
Win32 APIs, events, messages, Windows, MFC class libraries
C + +, object-oriented, inheritance, polymorphism
Keyboard messages, inserts, mouse messages, cursors
Menu resources, menu messages, toolbars, status bar
Standard controls, control messages, control resources, ActiveX controls
String classes, collection classes, time classes, date classes, file classes, exception classes
GDI objects, CDC classes, brushes, brushes, fonts, coordinate systems
Document, view, multiple document, window split
Modal dialog box, modeless dialog box, property Sheet dialog box, common dialog box, message dialog box
dynamic-link libraries, Win32 DLLs, General DLLs, extension DLLs
threads, user interface threads, worker threads, thread synchronization, thread communication
Windows Sockets, connectionless communication, connected communication
Database programming, SQL, ADO, ODBC settings
Book Catalogue:
First article vc/c++ basic articles
1th Chapter Visual c++6.0 Integrated development Environment 1
1.1 Visual c++6.0 and its development environment 1
1.1.1 Visual c++6.0 Installation 1
1.1.2 Visual c++6.0 Development Environment 3
1.1.3 Visual c++6.0 Wizard 4
1.2 Editor, menu and shortcut keys Introduction 4
1.2.1 Visual C + + editor 4
1.2.2 Visual C + + main Menu item 5
1.2.3 Visual C + + common function keys and their significance 7
1.3 Project and project work area 9
1.3.1 Create a Project workspace and project 9
1.3.2 Project Workspace Window 9
1.4 Resources and Resources editor 10
1.4.1 Resource Editor 10
1.4.2 Resource Symbol 11
1.5 Online Help 12
2nd. Creation of the Visual c++6.0 basic Application 14
2.1 Using AppWizard build Project 14
2.1.1 Engineering and work area 14
2.1.2 AppWizard can be created by project type 14
2.2 Win32 Console Application 15
2.2.1 Using the wizard to build the WIN32 console project 16
2.2.2 Generate and edit source files 16
2.2.3 Compile program 19
2.2.4 Link Program 19
2.2.5 Run Program 20
2.2.6 Debug Program 20
2.3 MFC Application Framework 22
2.3.1 Application framework based on dialog box 23
2.3.2 MFC applications based on document/view architecture 24
Introduction to 2.3.3 Document/view Structure 25
2.4 VC + + Program project documentation and development process 26
2.4.1 VC + + program of the project document 27
2.4.2 VC + + project development process 27
3rd chapter Windows Programming and MFC Foundation 30
3.1 Windows Programming Basics 30
3.1.1 Windows API function 30
3.1.2 window and handle 30
3.1.3 Event and Message 31
3.1.4 commonly used Windows data type 31
3.2 Windows Application Analysis 32
3.2.1 WinMain Function 32
3.2.2 Create window 33
3.2.3 Message Loop 34
3.2.4 WinProc window function 35
3.2.5 Windows Programming Instance 35
3.3 MFC Basics 37
3.3.1 MFC Overview 37
3.3.2 MFC base classes and their hierarchies 37
3.3.3 Global functions in MFC 38
3.4 MFC Application Framework Analysis 39
3.4.1 Entry Function 39
3.4.2 Application Object 41
3.4.3 InitInstance () function 41
3.4.4 Run () function 42
3.4.5 MFC Message Map 44
3.4.6 MFC Message Classification 44
The 4th Chapter object-oriented programming and C + + language 46
4.1 Overview of Object-oriented programming 46
4.1.1 Object-oriented basic concepts 46
Basic features of 4.1.2 Object-oriented technology 47
4.2 C + + language Basics 48
4.2.1 C + + basic Control Structure 49
4.2.2 C + + data and basic data type 52
4.2.3 C + + operators and Expressions 54
Functions of 4.2.4 C + + 56
4.2.5 C + + pointer 59
4.3 C + + object-oriented features 60
Class 61 in 4.3.1 C + +
Object of the 4.3.2 class 63
4.3.3 C + + class inheritance and derivation 63
4.3.4 C + + class inheritance instance 65
4.3.5 C + + class polymorphism 67
VC commonly used classes, controls, resource articles
5th Chapter Basic Input-keyboard and mouse message 71
5.1 Keyboard messages and their processing 71
5.1.1 Keyboard Message 71
Processing of 5.1.2 Keyboard messages 71
Processing of 5.1.3 Key messages 72
5.1.4 Key Message processing function 73
5.1.5 Character Message Processing 76
5.1.6 Create a keyboard caret 79
5.2 Mouse message and its processing 81
5.2.1 Mouse Message 81
5.2.2 Mouse Message handler function 81
5.2.3 Mouse Message Processing instance 81
5.2.4 mouse cursor creation and use 84
5.2.5 Capture Mouse 86
5.2.6 locked Mouse Action Area 86
6th chapter menus, toolbars and status bar programming 88
6.1 Use of menu and related resources 88
6.1.1 Menu category and development step 88
Creation and editing of the 6.1.2 menu 89
6.1.3 Menu Message 90
Processing of 6.1.4 menu command messages 91
Processing of 6.1.5 Menu update messages 92
6.1.6 set shortcut keys for menu items 94
6.1.7 pop-up menu creation and use 95
6.2 Use of the toolbar 98
Creation of the 6.2.1 Toolbar 98
6.2.2 Edit Toolbar 100
6.2.3 Toolbar Command Handling 101
A brief introduction to 6.2.4 Toolbar class CToolBar 102
6.3 Use of status bar 103
Creation of the 6.3.1 status bar 103
6.3.2 Status Bar Programming 104
A brief introduction to 6.3.3 status Bar class CStatusBar 106
Chapter 7th using Windows standard Control 107
7.1 Windows standard Control 107
7.1.1 Windows Control Introduction 107
7.1.2 Use the dialog editor to create a control 108
7.1.3 Control class base class-cwnd 110
7.1.4 control's message and its handling 111
7.2 Button Control 111
7.2.1 Button Control Introduction 112
7.2.2 Button control class CButton 112
7.2.3 Button control's properties and message 112
7.2.4 Button State of determination 114
7.2.5 Button control using instance 115
7.3 Static controls and edit controls 118
7.3.1 Static control creation and use 119
7.3.2 static Control class CStatic 120
7.3.3 Edit Control Creation 120
7.3.4 Edit Control class CEdit 121
7.3.5 the message for the edit control 122
Application instance of 7.3.6 Edit Control 122
7.4 list box controls and combo box controls 124
Create a 7.4.1 list box control 124
7.4.2 list box control class CListBox 125
7.4.3 message 126 For a list box control
7.4.4 list Box control Instance 127
Create a 7.4.5 combo box control 129
7.4.6 combo box control class CComboBox 130
7.4.7 message 131 for combo box control
7.5 Micro-control components, slider controls, and progress bar controls 131
Creation of 7.5.1 micro-control Components 132
The use of 7.5.2 micro-control Parts 132
7.5.3 Slider Control Creation 133
Use of the 7.5.4 slider control 134
7.5.5 progress bar control creation and use 135
7.5.6 micro-control components, slider controls, and progress bar control programming Instance 136
7.6 List view controls and tree view Controls 138
Create a 7.6.1 List view Control 138
7.6.2 List View Control class CListCtrl 139
7.6.3 notification message for a list view control 140
Create a 7.6.4 tree view control 140
7.6.5 tree view Control class CTreeCtrl 141
7.6.6 The tree view Control message 143
7.6.7 List View Control and tree view Control programming instance 143
Use of the 7.7 ActiveX control 146
7.7.1 the structure of an ActiveX control 147
7.7.2 components and control libraries in Visual C + + 148
7.7.3 the use of ActiveX controls in MFC programs 148
7.7.4 an ActiveX control using instance 149
8th Chapter MFC some commonly used general class 154
8.1 String Class (CString) 154
Creation of 8.1.1 CString objects 154
member functions of the 8.1.2 CString class 154
Common operations for 8.1.3 CString class 155
8.1.4 CString format and type conversion 157
8.2 MFC Collection Class 159
8.2.1 Array Class 159
Use instance of 8.2.2 array class 160
8.2.3 Chain List Class 161
8.2.4 List Class Use example 163
8.3 Date, Time Class 165
8.3.1 CTime Class 165
Format of 8.3.2 CTime object 166
8.3.3 CTimeSpan Class 167
Use of 8.3.4 Timer 168
8.4 MFC file Operation class-cfile 169
8.4.1 construct the file object and open file 169
8.4.2 file read-write Operation 170
Positioning operations for 8.4.3 files 171
8.4.4 File Management Action 172
8.4.5 use CFile class for file operation instance 172
8.5 MFC Exception Class 174
8.5.1 MFC Exception Class Introduction 175
8.5.2 file Exception class CFileException 175
Capture of 8.5.3 Exception 176
9th Chapter Text, graphics output 178
9.1 Basic Knowledge 178
Implementation of 9.1.1 GDI drawing 178
9.1.2 MFC Graphics Object class 179
9.1.3 Inventory GDI Object 180
9.1.4 simple data types related to drawing 180
9.1.5 graphics drawing and refreshing in MFC application Framework 182
9.2 MFC Device Description Table-CDC class 183
9.2.1 CDC and its derived class 183
9.2.2 Text Output 185
9.2.3 CDC's common drawing function 186
9.3 Drawing with brushes and brushes 188
9.3.1 Brush object and its use 188
9.3.2 use brush Drawing instance 189
9.3.3 Brush object and its use 191
9.3.4 use brush Drawing instance 191
9.4 Font Object 194
9.4.1 Font Object Creation 194
9.4.2 Get font Information 195
9.4.3 Font Object Use instance 196
9.5-bit Diagram and area object 197
9.5.1 device-related bitmap (DDB) 197
9.5.2 CBitmap Application Example 199
9.5.3 device Independent bitmap (DIB) 200
9.5.4 Area Object (CRGN) 201
9.5.5 CRGN Application Example 201
9.6 coordinate system and mapping mode 203
9.6.1 coordinate system 203
9.6.2 Mapping Mode 204
9.6.3 Custom Mapping Mode 204
9.6.4 coordinate mapping using instance 205
The third VC basic application development article
Chapter 10th application Development for document/view architecture 207
10.1 Document/View structure 207
10.1.1 Document/View architecture Overview 207
10.1.2 Classification of document/view structure 208
10.2 Document/View Architecture application Framework Analysis 209
10.2.1 use AppWizard to create a single document program framework 209
Main classes and relationships in the 10.2.2 program Framework 212
10.2.3 document class, view class core functions and Functions 214
10.2.4 new, saved, and opened implementations 215
10.2.5 Multi-Document application framework 216
10.3 Document/View Architecture Application Development 217
10.3.1 Achieve Goal 217
10.3.2 Create a Basic program framework 217
10.3.3 Create document Data 219
10.3.4 implementation of drawing operations in a view class 219
Serialization of 10.3.5 Documents 222
10.3.6 serialization of routine data 226
10.3.7 let the document/view structure program support scroll bar 229
10.4 Window Segmentation and multi-View 231
10.4.1 Window Segmentation Basics 231
Implementation of 10.4.2 Dynamic Partition window 233
10.4.3 static split window and multi-view implementation 235
11th Chapter dialog Box Application 239
11.1 How dialog boxes work, what kind, and how to create 239
How the 11.1.1 dialog box works in your application 239
Type of 11.1.2 dialog box 239
11.1.3 dialog box template creation and editing 240
11.2 dialog box and program connection 242
11.2.1 Create a dialog box class 242
11.2.2 Add Member variable 243 to the dialog box class
11.2.3 dialog box data exchange and validation 244
Handling of 11.2.4 dialog box control notification messages 246
11.3 dialog box creation and display 248
11.3.1 Create modal dialog box 248
11.3.2 Creating modeless Dialog box 250
11.3.3 Non-modal dialog box Create instance 251
11.3.4 application based on dialog box 255
11.4 Property Sheet dialog box 257
Create a 11.4.1 Property sheet dialog box 258
The 11.4.2 Property Sheet dialog box runs 261
11.5 message dialog box and Public dialog 262
11.5.1 message dialog box 263
11.5.2 Color Dialog Box 265
11.5.3 file dialog box 266
11.5.4 Font Dialog Box 267
11.5.5 Find, Replace dialog box 269
11.5.6 Print dialog Box 271
11.5.7 Common dialog box use instance 273
12th Chapter dynamic Link Library programming 278
12.1 Basic Concepts 278
12.1.1 The concept of dynamic link library 278
Advantages of 12.1.2 dynamic link library 279
12.1.3 DLL 279 that Visual c++6.0 can develop
Composition of the 12.1.4 DLL file 280
Creation and invocation of 12.2 DLL 281
Creation of the 12.2.1 Win32 DLL 281
Export of 12.2.2 DLL 282
12.2.3 Application Link DLL 283
12.3 MFC General DLL creation and use 287
12.3.1 Basic Concept 287
12.3.2 the creation of MFC general DLLs 287
12.3.3 instance of MFC general DLL 288
12.3.4 MFC General DLL Call 290
12.4 MFC Extension DLL creation and use 291
12.4.1 MFC Extension DLL creation 291
12.4.2 an MFC extension DLL creation instance 292
12.4.3 MFC Extension DLL call 295
Viewing and debugging of 12.5 DLLs 296
12.5.1 Use the Depends tool to view DLL interface 296
Debugging of 12.5.2 DLL 297
Fourth VC program development and improve the article
13th. Multithread Program Development 299
13.1 Multi-Threading Introduction 299
Less than 299 of 13.1.1 single-threaded routines
Resolution of the 13.1.2 problem 300
13.2 Basics of multi-threading programming 300
13.2.1 process and Thread 300
13.2.2 Spy + + tool 301
13.2.3 Win32 API support for multithreaded programming 302
13.2.4 MFC support for multithreaded programming 305
13.3 Multi-Thread development method 308
13.3.1 uses WIN32 API functions to open multithreaded 308
13.3.2 MFC user interface thread development 311
13.3.3 MFC worker Thread Development 314
13.4 Communication between Threads 315
13.4.1 uses global variables to implement communication between threads 315
13.4.2 communication between threads using a custom message 318
13.5-Thread Sync 321
13.5.1 wait function 321
13.5.2 CEvent class implementation thread synchronization 322
13.5.3 use CEvent class to implement thread synchronization instance 323
13.5.4 CCriticalSection class implementation thread synchronization 326
13.5.5 CCriticalSection class Implementation thread synchronization instance 326
13.5.6 CSemaphore class implementation thread synchronization 329
13.5.7 CSemaphore class Implementation thread synchronization instance 330
14th VC Network Programming 332
14.1 Network communication and development base 332
14.1.1 TCP/IP protocol 332
14.1.2 TCP/IP protocol core and application relationship 333
14.1.3 Windows Sockets Base 334
14.1.4 client/Server mode 334
14.2 Basic network communication Development 335
14.2.1 CAsyncSocket class and the use of common member functions 335
14.2.2 connectionless communication using Winsock 339
14.2.3 non-connected communication instance 340
14.2.4 connected Communication using Winsock 343
14.2.5 has connected communication instance 344
14.3 Network programming and development 348
Some concepts of 14.3.1 network program 348
14.3.2 Socket Event 349
Excitation control of 14.3.3 socket event 349
Acquisition and processing of 14.3.4 socket information 350
14.3.5 Network Program Development Example 352
14.4 WinInet Develop Internet client program 359
14.4.1 MFC WinInet Development Kit 360
14.4.2 WinInet process for developing client programs 361
14.4.3 WinInet Development HTTP client program Instance 362
14.5 Simple web browser development 363
14.5.1 CHtmlView View class Introduction 364
14.5.2 Browser Development Example 365
15th VC Database Programming 370
15.1 Database Basics 370
Basic concept of 15.1.1 database 370
15.1.2 Database management System (DBMS) 371
15.1.3 Structured Query Language (SQL) # 371
15.2 Database Development Technology Introduction 374
15.2.1 ODBC API/MFC ODBC technology 374
15.2.2 DAO Technology 375
15.2.3 ADO Technology 375
15.3 using ADO to develop database applications in Visual C + + 377
15.3.1 Visual C + + support for ADO 377
15.3.2 CREATE DATABASE and instance Project 378
15.3.3 introduces ADO Object 380
15.3.4 Connection Data Source 381
15.3.5 Development Technology-Connection object 382
15.3.6 Create a table and add data 384
15.3.7 Development Technology-ado Execution of object commands 385
15.3.8 Development Technology-recordset Object 386
15.3.9 traversal, delete, and edit record implementation 391
15.4 Connect to database using ODBC data source 396
15.4.1 Manual Implementation Set ODBC data source 396
15.4.2 ADO Connection ODBC data source 397
15.4.3 Visual C + + program implementation setting ODBC data source 398
15.4.4 use the Visual C + + program to set an ODBC data source instance 398
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.