Professional Software Development with Visual C++ 6.0 and MFC

by
Edition: CD
Format: Paperback
Pub. Date: 2001-12-28
Publisher(s): Charles River Media
List Price: $53.45

Rent Textbook

Select for Price
There was a problem. Please try again later.

New Textbook

We're Sorry
Sold Out

Used Textbook

We're Sorry
Sold Out

eTextbook

We're Sorry
Not Available

How Marketplace Works:

  • This item is offered by an independent seller and not shipped from our warehouse
  • Item details like edition and cover design may differ from our description; see seller's comments before ordering.
  • Sellers much confirm and ship within two business days; otherwise, the order will be cancelled and refunded.
  • Marketplace purchases cannot be returned to eCampus.com. Contact the seller directly for inquiries; if no response within two days, contact customer service.
  • Additional shipping costs apply to Marketplace purchases. Review shipping costs at checkout.

Summary

Ideal for developers transitioning from Visual basic to VC++ and those interested in quickly learning MFC. Provides hands-on examples for programmers to develop complete applications and learn how to integrate the techniques into their own software projects. Softcover. CD-ROM included.

Table of Contents

Acknowledgements xix
Preface xxi
Part I The Visual C++ Developer Studio 1(52)
Rapid Application Development
3(14)
Working with AppWizard
4(4)
Compiling an Application
8(1)
Executing an Application
9(2)
An SDI Application
11(3)
An MDI Application
14(3)
A Quick C++ Review
17(14)
Data
17(3)
Value versus Reference
18(2)
Statements and Blocks
20(1)
Functions
20(1)
Logic Flow Control
21(2)
if-else
21(1)
switch
22(1)
for
22(1)
while
22(1)
do
23(1)
Classes and Objects
23(6)
Constructor and Destructor
25(1)
Instantiating an Object
26(1)
Class Members
26(1)
Inheritance
27(1)
Member Functions
28(1)
Accessing Members
29(1)
Comments
29(2)
Working with Visual Developer Studio
31(22)
Resource View
32(17)
Menu
32(2)
Adding Menu Items
34(2)
Editing Menu Items
36(1)
Deleting Menu Items
36(1)
Relocating Menu Items
37(1)
Accelerator
37(1)
Adding a Hot Key
38(2)
String Table
40(2)
Icon
42(3)
Toolbar
45(1)
Version
46(1)
Prompt Messages
47(2)
File View
49(4)
Part II MFC GUI 53(84)
The CDialog Class
55(8)
Creating a Dialog Class
56(2)
Adding Functions with ClassWizard
58(2)
IntelliSense
60(2)
The Modal Dialog
62(1)
The Static Box, Edit Box, and Button
63(16)
The Static Control
63(2)
The Text Box Control
65(11)
The CEdit Class
66(1)
Windows Messages
67(3)
Adding a String Variable
70(1)
Data Exchange
71(2)
Edit Box with Numeric Data
73(2)
Disabling Editing
75(1)
Styling the Edit Box
75(1)
The Button Control
76(3)
Implementing a Command Button
76(3)
The Check Box, Radio Button, and Group Control
79(10)
The Check Box Control
79(3)
Reading the Check Box
80(2)
Setting the Check Box
82(1)
The Radio Button
82(5)
Good Coding
85(2)
The Group Control
87(2)
The Combo Box and the List Box
89(8)
The Combo Box Control
89(5)
Rendering a Combo Box
89(2)
Loading Data in a Combo Box
91(2)
Using a Combo Box
93(1)
The List Box
94(3)
Reading the List Box
95(2)
The Slider Bar, Spin Control, and Progress Bar
97(8)
The Slider or Trackbar Control
97(3)
Reading Slider Values
99(1)
The Spin Control
100(2)
Reading the Spin Control Position
102(1)
The Progress Bar
102(3)
The Picture and Animation Controls
105(6)
The Picture Control
105(3)
The Animation Control
108(3)
Manual Playing
110(1)
Creating Control Objects from Code
111(8)
Creating an Edit Box
111(3)
Creating a Static Control
114(1)
Creating a Button Control
115(1)
Creating a Check Box Control
115(1)
Creating a Radio Button
116(1)
Creating a Combo Box
116(1)
Creating a List Control
116(1)
Creating a Progress Bar
117(1)
Creating a Slider Bar
117(1)
Creating a Spin Control
117(2)
Dialog and Application Development
119(18)
Anatomy of a Dialog Application
119(4)
The Modeless Dialog
123(9)
Deactivating Menu Commands
126(4)
Controlling the Modeless Dialog Programmatically
130(2)
The User Interface
132(5)
Component Layout
132(1)
Quick Keys
133(1)
Tab Order
134(3)
Part III VC++ Projects 137(28)
Working with the IDE
139(10)
The MFC Class Library References
139(3)
Context-Sensitive Help
142(4)
Taking Advantage of the IDE
142(4)
Recycling Code
146(3)
Inserting a Project in a Workspace
146(2)
Removing a Project
148(1)
Error Handling
149(8)
Function Return Value
149(1)
Exception Handling
150(2)
Debugging
152(2)
Tracking Down Errors
153(1)
Setting Break Points
154(3)
Project Maintenance
157(8)
Removing Classes and Objects
157(3)
Removing an Object Variable
158(1)
Removing a Member Variable
158(1)
Removing a Member Function
159(1)
Removing Classes
159(1)
Modifying Items
160(1)
Recycling Work
161(2)
Borrowing Resources
161(1)
Borrowing from a Project
161(1)
Borrowing from an Executable
161(1)
Borrowing Classes
161(1)
Recycling Code
162(1)
Rejuvenating a Project
163(2)
Part IV The Document/View Paradigm 165(50)
SDI Application Basics
167(8)
The CMainFrame Class
170(1)
OnCreate ()
170(1)
The CDocument Class
171(1)
The CView Class
172(3)
The Document-to-View Relationship
172(1)
The Mainframe-to-View Relationship
172(1)
The View-to-Mainframe Relationship
173(1)
The Mainframe-to-Document Relationship
173(1)
The View-to-Document Relationship
173(1)
The Relationship to the Application
173(2)
The SDI Application Model
175(20)
Device Context
175(4)
Mapping Mode
175(2)
Painting Tools
177(2)
A Drawing Application
179(1)
Drawing Pictures
180(2)
MoveTo()
180(1)
The POINT Structure
180(1)
CPoint
181(1)
LineTo()
181(1)
FillRect()
181(1)
Ellipse()
181(1)
Drawing a Circle
181(1)
Arc()
181(1)
The RECT Structure
182(1)
CRect
182(1)
Writing Text
183(6)
Using Fonts
183(1)
Displaying Text
184(2)
GetClientRect()
186(3)
DrawText() Formats
189(1)
Invalidate() and UpdateWindow()
189(6)
Printing and Print Preview
195(6)
Setting Up for Printing
197(1)
OnPreparePrinting()
198(1)
OnBeginPrinting()
198(1)
OnPrepareDC()
199(1)
OnPrint()
199(1)
OnEndPrinting()
200(1)
Working with Views
201(4)
CScrollView
202(1)
CFormView
203(1)
CCtrlView
203(1)
CEditView
203(1)
CListView
204(1)
CTreeView
204(1)
CRichEditView
204(1)
CRecordView
204(1)
CDaoRecordView
204(1)
The MDI Application, Split Windows, and Multiple Views
205(10)
The MDI Application Model
205(3)
The Main Frame and the Child Frame
207(1)
Working with Split Windows
208(3)
CSplitterWnd
210(1)
Working with Multiple Views
211(4)
Part V Working with MFC Data Classes 215(36)
CString
217(6)
GetLength()
218(1)
Format()
218(1)
GetAt()
218(1)
IsEmpty()
219(1)
Left() and Right()
219(1)
Mid()
219(1)
MakeLower() and MakeUpper()
219(1)
TrimLeft() and TrimRight()
220(1)
LoadString()
220(3)
Date and Time
223(8)
CTime
223(6)
Current Time
223(1)
Specific Time
224(1)
Reading Time
224(1)
String Conversion
224(1)
The Month Calendar Control
225(3)
The Date Time Picker
228(1)
COleDateTime
229(2)
Collections
231(10)
Arrays
231(5)
CArray
232(2)
CObArray
234(1)
CByteArray
234(1)
CDWordArray
234(1)
CLongBinary
234(1)
CStringArray
234(2)
Lists
236(5)
CList
236(1)
CObList
236(2)
CStringList
238(3)
Data I/O
241(10)
Serializing
241(3)
File I/O
244(7)
CStdioFile
244(4)
CFile
248(1)
CMemFile
249(2)
Part VI Database Processing 251(68)
The Sample Database
251(4)
Setting Up the ODBC Data Source
252(3)
An AppWizard ODBC Database Application
255(12)
Displaying Data
258(1)
Navigating Data Records
259(2)
Data Updating
261(6)
Adding New Records
261(1)
OnMove()
261(2)
Deleting Records
263(1)
Protecting the Data
264(1)
Update()
264(3)
An ODBC Data Table Processor
267(12)
Data Abstraction
269(2)
Opening and Closing the Database
271(2)
Displaying Data
273(1)
Adding a New Record
274(2)
Navigating the Records
276(3)
An ODBC Database Application
279(22)
Implementing a Query
280(2)
Working with a Grid
282(6)
Determining Grid Row Count
287(1)
Setting Up Grid Column Headers
287(1)
Setting Grid Column Width
287(1)
Setting Grid Cell Data
288(1)
Filtering
288(4)
Data Maintenance
292(9)
Deleting a Grid Record
292(2)
Editing Data
294(7)
The List View, Image List, and Tree View
301(8)
The List View Control
301(2)
The CImageList Class
303(2)
The Tree View Control
305(4)
Adding Images
307(2)
SQL, DAO, OLE DB, and ADO
309(10)
SQL Processing (CDatabase)
309(2)
Working with a Database Directly
310(1)
DAO
311(2)
Adding a New Record
312(1)
Editing a Record
312(1)
Deleting a Record
312(1)
CDaoDatabase
312(1)
OLE DB and ADO
313(6)
OLE DB
313(1)
ADO
313(2)
Data Controls
315(4)
Part VII Component Programming 319(30)
Building DLLs
321(12)
C++ Regular DLLs
321(4)
Adding a Header File
322(2)
Writing an Export Function
324(1)
Using a DLL
325(2)
Project Settings
326(1)
MFC Extension DLLs
327(2)
Conflicting Resources
329(4)
Insulating Resources
330(3)
Building ActiveX Controls
333(16)
Creating An ActiveX Component
333(16)
Trying the ActiveX Control
335(1)
The OnDraw() Function
336(1)
Properties
336(3)
The PX_Macros
339(1)
Property Page
340(2)
Adding a Stock Property Page
342(1)
Adding a Second Custom Property Page
342(2)
Methods
344(1)
Drawing the Control
344(1)
Using the ActiveX Control
345(4)
Part VIII Professional Software Development 349(86)
A Professional-Quality Application
351(26)
Child Dialog
352(2)
Drawing Different View Displays
354(4)
Invoice
354(2)
Subscription Routing Slip
356(2)
Event-Driven Programming
358(1)
Window Sizing
359(4)
A Sizable Dialog Application
361(2)
Customizing the Toolbar
363(5)
Customizing the Status Bar
368(2)
The Timer
370(2)
Menu
372(5)
Adding Menus to Dialogs
374(3)
Common Dialogs
377(8)
CFileDialog
377(1)
Save As
377(2)
Save
379(1)
Open
379(6)
CFontDialog
380(1)
CColorDialog
381(1)
CPageSetupDialog
382(1)
CPrintDialog
382(1)
CFindReplaceDialog and COleDialog
383(2)
Application Preferences
385(18)
Property Sheets and Wizards
386(6)
Property Sheets
386(4)
Wizards
390(2)
The Tab Control
392(3)
Command Line Processing
395(1)
Window and Object Sizing
396(1)
The Windows Registry
397(6)
Bells and Whistles
403(8)
Pop-Up Menus
403(2)
Tooltips
405(2)
System Info
407(1)
Splash Screen
408(1)
The Hour Glass
409(1)
Tip of the Day
410(1)
Onscreen Help
411(8)
Context-Sensitive Help
411(1)
Help on Menu Commands
412(1)
Preparing Help Contents
413(2)
Help with Controls
415(2)
Help Contents
417(1)
The CNT File
417(2)
Program Installation and Distribution
419(16)
Release Compilation
420(1)
Using InstallShield
420(15)
Resources
424(1)
Setup Types
424(1)
Components
425(2)
File Groups
427(4)
Scripts
431(2)
Building Distribution Files
433(1)
Creating Distribution Media
433(1)
Testing the Distribution Package
434(1)
Part IX Beyond VC++ 6.0 435(24)
Current VC++ and MFC Applications
437(4)
VC++ and Client/Server Systems
437(1)
VC++ and the Web
438(1)
Device Drivers and Onboard Applications
438(1)
Windows SDK
438(3)
VisualStudio.NET
441(18)
What Is .NET?
441(1)
The .NET Microsoft Development Environment
442(2)
VC++ 7.0 and Managed VC++
444(4)
C#
448(7)
Data Types
449(1)
Operators
450(1)
Data Declaration
451(1)
Logic Controls
452(3)
Migrating to VB
455(1)
Conclusion
456(3)
Glossary 459(4)
Appendix: About the CD-ROM 463(4)
Index 467

An electronic version of this book is available through VitalSource.

This book is viewable on PC, Mac, iPhone, iPad, iPod Touch, and most smartphones.

By purchasing, you will be able to view this book online, as well as download it, for the chosen number of days.

Digital License

You are licensing a digital product for a set duration. Durations are set forth in the product description, with "Lifetime" typically meaning five (5) years of online access and permanent download to a supported device. All licenses are non-transferable.

More details can be found here.

A downloadable version of this book is available through the eCampus Reader or compatible Adobe readers.

Applications are available on iOS, Android, PC, Mac, and Windows Mobile platforms.

Please view the compatibility matrix prior to purchase.