Pulse VC ++

Source: Internet
Author: User
Tags win32 window

Pulse VC ++

[Author] Bai Qiao; Zuo Fei [same author's work]
[Description] C/C ++ development expert
[Release news agency] Electronic Industry Publishing House [book no.] 9787121086175
[Shelving time]
[Publication date] [Opening] on April 16, July 2009 [Page code] 663

Sample chapter trial and online purchase: http://www.china-pub.com/195701&ref=ps

[Edit recommendations]
This section focuses on the key technologies of Visual C ++.
By studying this book, you can quickly master the programming skills and ideas of Visual C ++ ..
The attached CD contains the instance source files in the book ..

[Content Overview]
This book focuses on the key technologies of Visual C ++, that is, several major problems that visual C ++ programmers often encounter in actual engineering development: data Memory expression, data conversion and processing, data persistence, data interface display, data transmission and exchange technologies. The book mainly includes: development Technology in software projects, topics about visual C ++, expressions of common objects, assignment and conversion of objects, object containers, object access using files, object access using registries, and database usage access Object, interface layout, interface drawing and interaction, interface beautification, inter-process object transmission and calling, inter-thread object transmission and calling, inter-module object transmission and calling transmission and call of objects between networks. By studying this book, you can quickly master the programming skills and ideas of Visual C ++ ..

The CD attached to the book contains the instance source files in the book...

This book is intended for beginners and intermediate readers. It is suitable for the majority of readers who are interested in learning visual c ++ and is also suitable for reference books for teachers and students of related majors in colleges and universities, it can also be used as a teaching material for relevant training institutions ....

[Directory]
1st overview of Visual C ++
Chapter 3 Development Technology 3
1.1 Software Project 3
1.2 software project development process 3
1.2.1 software development process 3
1.2.2 troubleshooting (Debug) 6
1.2.3 prototype 6
1.2.4 refactor 7
1.3 software architecture and software hierarchy 8
1.3.1 principles of software architecture 8
1.3.2 C/S and B/S mode 9
1.3.3 MVC mode 11
1.3.4 document/view structure 12
1.3.5 popular layer-3 architecture 12
1.4 In the Visual C ++ Project
Four main technologies 13
1.4.1 Object Modeling and expression 14
1.4.2 Object Persistence 14
1.4.3 object interface display 15
1.4.4 object transmission and call 16
1.4.5 starting from QQ and MSN, 17
1.4.6 four major technologies and three-layer architecture 23
1.5 return to Inn Management System 24
1.5.1 Object Modeling and expression 24
1.5.2 Object Persistence 26
1.5.3 object interface display 28
1.5.4 object transmission and call 29
1.6 chapter 33
Chapter 35 about visual C ++
2.1 visual c ++ and C ++ 35
2.1.1 visual c ++ is not unique
C ++ compiler 35
2.1.2 visual c ++ is not unique
C ++ ide 37
2.1.3 visual c ++ and MFC/ATL
Version 39
2.1.4 controversial visual c ++ 40
2.1.5 visual c ++ and boost, QT 42
2.2 familiar with Visual C ++ ide 43
2.2.1 files, projects and solutions 44
2.2.2 visual c ++ code editor 46
2.2.3 visual c ++ resource editor 47
2.2.4 visual c ++ Application Wizard 49
2.2.5 visual c ++ debugger 50
2.3 separation from Visual C ++ programming 54
2.3.1 Dev-C ++ 54
2.3.2 compiling of console programs 55
2.3.3 write windows program 56
2.4 use visual c ++ to write programs 61
2.4.1 compilation of Win32 console Programs 61
2.4.2 support console programs
MFC/ATL 62
2.4.3 compilation of Win32 window program 65
2.4.4 compiling MFC/ATL applications 71
2.4.5 write CLR program 78
N writing methods of 2.5 billion words 79
2.5.1 use Windows API 80
2.5.2 use the C ++ standard library
(Stdcpp) 83
2.5.3 use CRT
(C Runtime database) 84
2.5.4 use the wide character version of the CRT library 87
2.5.5 use the secure version of the CRT library 88
2.5.6 use MFC/ATL 89
2.5.7 use C ++/CLI 91
2.5.8 which method should I use? 92
2.6 visual c ++ companion 93
2.6.1 source code 93
2.6.2 msdn and msdn database 95
2.6.3 Visual Studio Tools 97
2.6.4 visual assist x 98
2.6.5 visual c ++ resource website 99
2.7 summary of this Chapter 101

2nd Object Modeling and Expression in Visual C ++
Chapter 1 Common Object expressions 3rd
3.1 c ++ basic type 105
3.1.1 Original Type 105
3.1.2 compound type 106
3.1.3 custom type 108
3.1.4 _ INTN 110
3.1.5 <climits> 110
3.2 characters and string 111
3.2.1 <cctype> 112
3.2.2 C-style string 114
3.2.3 windows 115 characters
3.2.4 <cstring> 115
3.2.5 STD: String 117.
3.2.6 ATL: cstring 120.
3.3 Date and Time 122
3.3.1 <ctime> 123
3.3.2 ATL: ctime and ATL ::
Ctimespan 124
3.3.3 ATL: coledatetime and
ATL: coledatetimespan 127
3.3.4 time format 127
3.4 position and size 129
3.4.1 point, size, rect 129
3.4.2 ATL: cpoint, ATL: csize,
ATL: crect 130.
3.5 smart pointer 131
3.5.1 STD: auto_ptr 131
3.5.2 ATL: ccomptr and
ATL: ccomqiptr133
3.6 Windows Data Type 134
3.6.1 basic data type 134
3.6.2 windows handle 135
3.7 MFC object model 138
3.7.1 MFC: cobject 139
3.7.2 cobject and rtti 142
3.7.3 cruntimeclass 145

3.7.4 All-Round Criticism of MFC 148
3.8 MFC and ATL 148
3.9 naming rules and name crisis 149
3.10 summary of this Chapter 151
Chapter 2 Assignment and conversion of objects 4th
4.1 object initialization and assignment 153
4.1.1 struct & Class 153
4.1.2 object initialization 154
4.1.3 aggregate 154
4.1.4 assign a value of 155 to an object
4.1.5 sizeof and byte alignment 155
4.1.6 memory block operation function memxxx 157
4.1.7 pod object 158
4.2 cast 160
4.2.1 implicit conversion 160
4.2.2 explicit conversion 161
4.2.3 upward and downward conversion 163
4.2.4 variant 163
4.2.5 _ variant_t, ccomvariant and
Colevariant, cdbvariant 166
4.3 convert the value of an object
(Conversions) 168
4.3.xtoy 168
4.3.2 sprintf, sscanf 168
4.3.3 STD: stringstream 170
4.4 mathematical operations 171
4.4.1 <cmath> 171
4.4.2 random number 173
4.4.3 plural STD: complex 173
4.5 characters and encoding 174
4.5.1 bytes and characters 175
4.5.2 ANSI, MBCS and
Unicode 175
4.5.3 tchar, _ T, and _ text 177
4.5.4 strcpy, wcscpy, and _ tcscpy 178
4.5.5 messageboxa and messageboxw
And MessageBox 179
4.5.6 ATL: cstringt and STD: Basic
_ String 179
4.5.7 BSTR, _ bstr_t and
ATL: ccombstr180
4.5.8 String Length 181
4.5.9 character encoding conversion 183
4.6 use third-party libraries 187
4.6.1 universal boost: Any 187
4.6.2 universal Converter
Boost: lexical_cast 189
4.6.3 rational number boost: Rational 191
4.7 summary of this Chapter 192
Chapter 2 object container 5th
5.1 Common Containers 193
5.1.1 vector (vector) 193
5.1.2 list 194
5.1.3 map 195
5.1.4 set 195
5.1.5 queue 196
5.1.6 stack 196
5.1.7 select an appropriate set 197
5.2 C ++ standard container 198
5.2.1 STD: vector 199
5.2.2 STD: List 200.
5.2.3 STD: deque 200
5.2.4 STD: map, STD: multimap 201
5.2.5 STD: Set, STD: Multiset 202
5.2.6 STD: bitset 203.
5.2.7 STD: queue, STD: Priority
_ Queue 204
5.2.8 STD: Stack 205.
5.3 generic algorithms 206
5.3.1 indicator 206
5.3.2 function object 207
5.3.3 introduction to generic algorithms 210
5.4 MFC/ATL container 215
5.4.1 MFC: carray 217.
5.4.2 MFC: clist 218
5.4.3 MFC: cmap 218
5.4.4 traversal of set elements 219
5.5 summary of this Chapter 221
Article 3 persistence of objects in Visual C ++
Chapter 2 object access using files 6th
6.1 file operations: 225
6.1.1 use the CRT function STD: fxxx () 225
6.1.2 use the standard C ++ Library
STD: fstream227
6.1.3 use the Windows API 229
6.1.4 use MFC: cfile 232
6.1.5 text and binary files 234
6.2 use text files to access objects 236
6.2.1 text content access 237
6.2.2 reading the properties file 237
6.2.3 INI File Read 241
6.2.4 reading CSV files 243
6.3 using binary files to access objects 247
6.3.1 file pointer positioning 247
6.3.2 read/write 248 of fixed-length data blocks
6.3.3 read/write of variable-length data blocks: 250
6.3.4 use MFC: carchive 254
6.3.5 read windows resource file 259
6.4 Access objects using XML 262
6.4.1 XML and syntaxes 262
6.4.2 XML parsing 264
6.4.3 use MSXML to access XML 266
6.4.4 use ADO. net
Access the XML 271
6.5 summary of this chapter 276
Chapter 4 using the registry to access objects 7th
7.1 registry and Its Structure 277
7.1.1 structure of the Registry 277
7.1.2 common Registry root keys 278
7.2 use registry API 279
7.2.1 about registry operation API 279
7.2.2 use Windows APIs
Write registry 280
7.2.3 use Windows APIs
Read registry 282
7.3 use cregkey to access the Registry 286
7.3.1 ATL: cregkey 286
7.3.2 use cregkey to write registry 287
7.3.3 use cregkey to read the Registry 289
7.4 summary of this chapter 292
Chapter 4 database access objects 8th
8.1 database overview 293
8.1.1 relational database 293
8.1.2 SQL 295
8.1.3 common database access techniques 296
8.2 Use ODBC to manipulate the database 297
8.2.1 ODBC 297
8.2.2 Use odbc api 298
8.2.3 use MFC: cdatabase 302
8.2.4 encapsulate your own recordset 304
8.3 use DAO to manipulate the Database 309
8.4 use ole db to manipulate the database 313
8.4.1 ole db structure 313
8.4.2 ole db user template 314
8.4.3 use ole db to access database 315
8.4.4 use the ATL Wizard to create
Ole db user 318
8.5 use ADO to manipulate the database 321
8.5.1 ADO is an object encapsulation interface 322
8.5.2 connection string of common data sources: 322
8.5.3 using ADODB component 323
8.5.4 use the adodc control 326
8.6 use ADO. Net to manipulate the database 330
8.6.1 ADO. NET and ADO 330
8.6.2 online mode of ADO. Net: 330
8.6.3 offline mode of ADO. Net 332
8.7 summary of this Chapter 337
4th objects in Visual C ++
Interface display
Chapter 4 interface layout 9th
9.1 common interface elements 341
9.1.1 window 341
9.1.2 menu 346
9.1.3 control bar 349
9.1.4 customer zone and non-customer zone 358
9.1.5 bitmap and icon
(Bitmap, icon) 361
9.2 static layout of the interface 363
9.2.1 dialog box 364
9.2.2 use controls 368
9.2.3 dialog box for dynamic creation and control 369
9.2.4 use code control 371
9.2.5 map control variable 373
9.2.6 use a container to place controls 379
9.2.7 General dialog 383
9.2.8 use Windows Forms 386
9.3 Dynamic Layout of the interface 390
9.3.1 frame window 390
9.3.2 document/view 394
9.3.3 document and document template 396
9.3.4 view and cview 398
9.3.5 what are some busy frameworks? 399
9.3.6 split window 401
9.4 System Tray 405
9.5 summary of this Chapter 408
Chapter 5 interface rendering and interaction 10th
10.1 window and drawing 409
10.1.1 draw a circle in DOS 409
10.1.2 draw a circle in Windows 411
10.1.3 use the false button drawn by GDI 414
10.1.4 create a real button 415
10.1.5 use GDI + plot 417
10.2 enable interface interaction 420
10.2.1 a fake Console
420 message system
10.2.2 real windows
425 message system
10.2.3 3 different mouse clicks 428
10.3 MFC for MnS
What have you done? 430
10.3.1 message ing
(Message mapping) 431
10.3.2 message ing macro 435
10.3.3 message routing
(Message route) 436
10.3.4 Message reflection
Message reflection 440
10.3.5 message Pump
Message pump 445
10.4 use third-party libraries 447
10.4.1 DirectX 447
10.4.2 OpenGL 450
10.4.3 QT 452
10.5 summary of this chapter 454
Chapter 5 UI beautification 11th
11.1 basic ways of page beautification 457
11.1.1 set the window style
(Window style) 458
11.1.2 call the function to set
Extension style 462
11.1.3 call the function to set the color to 464
11.1.4 call the function to set the background image 465
11.2 UI self-painting of heavy load messages 466
11.2.1 wm_paint 466
11.2.2 ondraw () and onpainting () 468
11.2.3 wm_erasebkgnd 468
11.2.4 = wm_ctlcolor 470
11.2.5 = wm_drawitem 472
11.2.6 = wm_measureitem 476
11.2.7 = nm_customdraw 479.
11.3 Use ActiveX Controls
Enhanced interface 482
11.3.1 register ActiveX Control 483
11.3.2 introduce control 484 in the dialog box
11.3.3 map the control to variable 486
11.3.4 recommended for Common ActiveX controls 488
11.4 use third-party libraries 491
11.4.1 Xtreme toolkit and
BCG controlbar 492
11.4.2 skinmagic and skin Replacement Technology 494
11.5 summary of this chapter 497
5th objects in Visual C ++
Transmission and call
Chapter 2 inter-process object transmission and calling 12th
12.1 process operations 501
12.1.1 processes and Common Operations 501
12.1.2 process operations
CRT 502
12.1.3 process operations
Windows API 503
12.1.4 Windows Process Creation 504
12.1.5 termination of Windows 508
12.2 inter-process communication 510
12.2.1 use Windows messages
Transfer object 510
12.2.2 use file ing to share data 512
12.2.3 use clipboard to transmit object 518
12.2.4 use an anonymous pipeline to transmit objects 521
12.2.5 use a named pipe to transmit objects 526
12.2.6 use the mail trough to transmit object 530
12.3 Summary of this chapter 533
Chapter 1 transmission and call of objects between threads 13th
13.1 thread operations 535
13.1.1 about thread operations
CRT 535
13.1.2 about thread operations
Windows API 536
13.2 MFC encapsulation of thread operations 536
13.2.1 worker thread 537
13.2.2 UI-based worker thread 539
13.2.3 interface thread 541
13.3 thread communication 543
13.3.1 use global objects for communication 543
13.3.2 use entry parameters for communication 545
13.3.3 use Windows messages
Communication 547
13.4 thread synchronization 549
13.4.1 prepare a secure ticket sales program 550
13.4.2 the synchronization object csyncobject 553

13.4.3 use the critical section)
Synchronous 554
13.4.4 use mutex)
Synchronous 556
13.4.5 use semaphores (semaphore)
Synchronous 558
13.4.6 use events)
Synchronous 559
13.4.7 cmultilock and
Csinglelock 563
13.5 summary of this chapter 566
Chapter 4 object transmission and calling between modules 14th
14.1 static library and dynamic link library 569
14.1.1 package the MCD into McD. Lib 569
14.1.2 package MCD into McD. dll 571
14.1.3 call of MCD. dll 574
14.1.4 explicit call and implicit call 576
14.1.5 package classes into DLL 578
14.2 ActiveX Control 581
14.2.1 package MCD into McD. ocx 581
14.2.2 add McD. ocx
Setnumbers method 586
14.2.3 add McD. ocx
Direction Property 589
14.2.4 test in HTML
Mcdocx control 593
14.3 com 596
14.3.1 a non-com
C ++ port 596
14.3.2 a seemingly com DLL 601
14.3.3 true/false com 609
14.3.4 Use ATL to design com
Component 611
14.3.5 test in Javascript
COM component 615
14.3.6 using COM APIs
COM component 616
14.3.7 use # import call
COM component 619
14.4 Summary of this chapter 621
Chapter 2 object transmission and calling between networks 15th
15.1 use socket to complete network communication 623
15.1.1 how to send messages to the network
A bit? 623
15.1.2 TCP/IP protocol and
TCP and UDP 624
15.1.3 WinSock and Winsock APIs 625
15.1.4 use socket to implement C/S Mode 626
15.1.5 Use WinSock to create MCD
Online 627
15.2 use MFC: csocket
Complete network communication 632
15.2.1 WinSock and casyncsocket,
(Csocket 632)
15.2.2 use csocket to create MCD
Online 634
15.2.3 use csocket to create MCD
UDP 638
15.2.4 use csocket event 640
15.2.5 Connect using csocket
Website 648
15.3 using wininet API
Network Communication 653
15.3.1 wininet API and
Wininet 653
15.3.2 use wininet API to connect
MCD web version 654
15.3.3 use MFC: wininet
Web Version 658 of similar connection Inn
15.4 summary of this chapter 663

 

.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.