Book description
Visual C++ 6 Unleashed provides comprehensive coverage of the core topics for Visual C++ 6 programming. This book skips the beginning level material and jumps right in to Visual C++. By the end of the book, you will be able to master the 32-bit power of Windows using Visual C++ as your programming language. Topics include mastering the debugger, using and integrating HTML help, creating custom AppWizards, customizing the IDE with add-ins, writing multi-threaded MFC applications, developing NT services, using advanced UI techniques, and much more.
Table of contents
- Copyright
- About the Authors
- About the Contributors
- Acknowledgments
- Tell Us What You Think!
- Introduction
-
I. Introduction
-
1. The Visual C++ 6.0 Environment
- Developer Studio
- The Project Workspace
- The Workspace Window
- Project Configurations
- Converting Older Projects
- Working with Multiple Projects
- Working with Resources
- Editing Resources
-
MFC AppWizard
- What MFC AppWizard Can Do for You
- Starting MFC AppWizard
-
Project Types
- ATL COM AppWizard
- Cluster Resource Type Wizard
- Custom AppWizard
- Database Project
- DevStudio Add-In Wizard
- Extended Stored Procedure Wizard
- ISAPI Extension Wizard
- Makefile
- MFC ActiveX ControlWizard
- MFC AppWizard (DLL)
- MFC AppWizard (EXE)
- Utility Project
- Win32 Application
- Win32 Console Application
- Win32 Dynamic Link Library
- Win32 Static Library
- Other Project Types
- ClassWizard
- Component Gallery
- Integrated Debugger
- Command-Line Tools
- Other Tools
- Summary
-
1. The Visual C++ 6.0 Environment
-
II. MFC Programming
- 2. MFC Class Library Overview
- 3. MFC Message Handling Mechanism
- 4. The Document View Architecture
- 5. Creating and Using Dialog Boxes
- 6. Working with Device Contexts and GDI Objects
- 7. Creating and Using Property Sheets
-
8. Working with the File System
-
File System Overview
- The FAT File System
- Protected-Mode FAT
- The FAT-32 File System
- The HPFS File System
- The NTFS File System
- The CDFS File System
- Networked File Systems and Mapped Volumes
- The DFS File System
- File System Compression
- Disk Quotas
- Differences in Functions Among File Systems
- Determining the File System and Drive Types
- Win32 File Objects
- Compatibility I/O
- Serial Communications
- Using Consoles
- Summary
-
File System Overview
- 9. Using Serialization with File and Archive Objects
-
III. Internet Programming with MFC
-
10. MFC and the Internet Server API (ISAPI)
-
Developing a Server Extension Application
- ISA Entry Points
- GetExtensionVersion()
- TerminateExtension()
- HttpExtensionProc()
- The Extension Control Block
-
ServerSupportFunction()
- HSE_REQ_REFRESH_ISAPI_ACL
- HSE_REQ_IS_KEEP_CONN
- HSE_REQ_GET_IMPERSONATION_TOKEN
- HSE_REQ_ABORTIVE_CLOSE
- HSE_REQ_GET_CERT_INFO_EX
- HSE_REQ_SEND_URL_REDIRECT_RESP
- HSE_REQ_SEND_URL
- HSE_REQ_SEND_RESPONSE_HEADER
- HSE_REQ_SEND_RESPONSE_HEADER_EX
- HSE_REQ_MAP_URL_TO_PATH
- HSE_REQ_MAP_URL_TO_PATH_EX
- HSE_REQ_DONE_WITH_SESSION
- HSE_REQ_IO_COMPLETION
- HSE_REQ_TRANSMIT_FILE
- HSE_REQ_GET_SSPI_INFO
- HSE_APPEND_LOG_PARAMETER
- HSE_REQ_ASYNC_READ_CLIENT
- HSE_REQ_CLOSE_CONNECTION
- WriteClient()
- Sending Files
- Asynchronous Operations
- Writing to the Server Log
- Exception Handling in ISAs
- Debugging Your ISA
- Converting from CGI to ISAPI
- ISAPI Filters
- ISAPI Support in MFC
- The Internet Service Manager API
- Summary
-
Developing a Server Extension Application
- 11. The WinInet API
- 12. MFC HTML Support
-
10. MFC and the Internet Server API (ISAPI)
-
IV. Advanced Programming Topics
- 13. Using the Standard C++ Library
-
14. Error Detection and Exception Handling Techniques
- Structured Exception Handling
- C++ Exception Handling
-
MFC Error and Exception Handling
-
MFC Exception Macros
- THROW
- THROW_LAST
- TRY
- CATCH
- AND_CATCH
- AND_CATCH_ALL
- END_CATCH
- END_CATCH_ALL
- AfxThrowArchiveException
- AfxThrowFileException
- AfxThrowMemoryException
- AfxThrowNotSupportedException
- AfxThrowResource
- AfxThrowResourceException
- AfxThrowUserException
- AfxThrowOleDispatchException
- AfxThrowOleException
- AfxAbort
- Using MFC Exception Macros with C ++ Exception Handling
- The Advantages of Converting from MFC Exception Macros
- Predefined Exceptions for MFC
- Using CFileException
- Using CMemoryException
- Using CResourceCollection
- Using CArchiveException
- Using CDaoException
- Using OLE Exceptions: COleException and COleDispatchException
- Using NotSupportedException
- Using CUserException
-
MFC Exception Macros
- Summary
-
15. Debugging and Profiling Strategies
- MFC Support for Debugging
- Techniques for Debugging Your MFC Application
- Using the DevStudio IDE Debugger
- Using Spy++
- Using the OLE-COM Object Viewer
- Using the Process Viewer
- Performing Remote Debugging
- Troubleshooting
- Profiling Your Application
- Summary
- 16. Multithreading
- 17. Using Scripting and Other Tools to Automate the Visual C++ IDE
-
V. Database Programming
-
18. Creating Custom AppWizards
- How Do AppWizards Work?
- Creating a Custom AppWizard
- Components of a Custom AppWizard Project
- Template Files
- Programming Your AppWizard DLL
- Building a Custom AppWizard
- Debugging a Custom AppWizard
- Summary
- 19. Database Overview
-
20. ODBC Programming
- ODBC Architecture
- ODBC API Basics
- Creating ODBC Applications
- Executing SQL Statements
- Working with Result Sets
- Retrieving More Than One Row at a Time
- Inserting, Updating, and Deleting Rows
- Asynchronous Operations
- Transactions
- Catalog Functions
- Summary
- 21. MFC Database Classes
- 22. Using OLE DB
-
23. Programming with ADO
- ADO Objects
- Connection Objects
- ADOCommand Objects
- ADORecordset Objects
- ADOFields Collections and ADOField Objects
- ADOParameter Objects and the ADOParameters Collection
- ADOProperty Objects and ADOProperties Collections
-
Writing a Visual C++ ADO Application
- Step 1—Creating Connections and Recordsets ADO Objects
- Step 2—Connecting to a Database Through ADO
- Step 3—Opening an ADO Recordset
- Step 4—Closing the Connection and Recordset
- Step 5—Writing an UpdateData Routine for ADO
- Step 6—Navigating Through a Recordset
- Step 7—Inserting into the Recordset
- Step 8—Deleting from the Recordset
- Processing ADO Errors
- Enhanced ADO Recordset Functionality
- Executing Commands
- Transactions
- Summary
-
18. Creating Custom AppWizards
-
VI. MFC Support for COM and ActiveX
-
24. Overview of COM and Active Technologies
- COM, OLE, and Active Technology History in a Nutshell
- COM and OLE from the Eyes of the End User
- COM, OLE, and Active Technologies from a Programmer's View
- Evolving OLE with Active Technologies
- New Active Technologies
- Summary
- 25. Active Documents
- 26. Active Containers
-
27. Active Servers
- Active Servers Introduction
- Three-Tier Development Using Server Components
- MFC Versus Active Template Libraries
- Designing an MFC Miniserver
- Designing an MFC Automation Server
- Summary
-
28. ActiveX Controls
- A Short History
- What Is an ActiveX Control?
- ActiveX Control Architecture
- ActiveX Control Interfaces
- ActiveX Controls
- Reinventing the Wheel
- Testing an ActiveX Control
- Methods of Creating ActiveX Controls
- Creating an ActiveX Control with Visual C++ and MFC
- Summary
-
24. Overview of COM and Active Technologies
-
VII. Using the Active Template Library
- 29. ATL Architecture
- 30. Creating COM Objects Using ATL
-
31. Creating ActiveX Controls Using ATL
- ATL Control Classes
- Connection Points
-
Creating Scriptable Controls
- Requirements for Scriptable Controls
- Persistence for ActiveX Controls
-
A Scriptable ActiveX Control
- The Basic Design of ScriptButton
- Messages Handled by ScriptButton
- Handling Raised-Button and Flat-Button States
- Handling Button Clicks
- Handling the Focus Rectangle
- Creating the ScrBtn Project
- Adding the ScriptButton Control Class to the Project
- Adding Outgoing Events
- Modifying the Message Map
- Initializing the CScriptButton Object
- Retrieving Ambient Properties
- Handling Focus Events for the Control
- Handling Mouse Events for the Control
- Drawing the Control
- Implementing IPersistPropertyBag
- Marking the Control as Safe for Scriptable Clients
- Testing ScriptButton with Internet Explorer
- Summary
-
32. Using ATL to Create MTS and COM+ Components
- Understanding Transactions
- COM+ and MTS Features
- An Example of a COM+ Application
- Summary
-
VIII. Finishing Touches
-
33. Adding Windows Help
- Windows Help Basics
- Help Options in AppWizard
- Help Project Components
- Authoring Help Topics Using WinHelp
- Managing Help Projects
- Calling WinHelp from Your Applications
- Adding Context-Sensitive Help
- Using HTML Help with Visual C++
- Summary
-
33. Adding Windows Help
- IX. Appendix
Product information
- Title: Visual C++® 6 Unleashed
- Author(s):
- Release date: July 2000
- Publisher(s): Sams
- ISBN: 9780672312410
You might also like
book
Computer Graphics from Scratch
Computer graphics are at work everywhere today, adding eye-popping details to video games, hyper-realistic CGI to …
book
Core Java for the Impatient, 3rd Edition
Clear, Concise Guide to the Core Language and Libraries--Updated through Java 17 Modern Java introduces major …
book
API Design for C++
API Design for C++ provides a comprehensive discussion of Application Programming Interface (API) development, from initial …
book
Learning Go
Go is rapidly becoming the preferred language for building web services. While there are plenty of …