Home > Store

Extending MFC Applications with the .NET Framework

Register your product to gain access to bonus material or receive a coupon.

Extending MFC Applications with the .NET Framework

Premium Website

  • Sorry, this book is no longer in print.
Not for Sale

Description

  • Copyright 2004
  • Edition: 1st
  • Premium Website
  • ISBN-10: 0-321-17352-X
  • ISBN-13: 978-0-321-17352-2

“To anyone looking to augment their existing MFC code base and knowledge with the powerful .NET classes—which provide such capabilities as disconnected data, in-memory database (IMDB), regular expressions, and data encryption—Tom Archer’s book has it all.”

Erik Westermann, Lead Architect, Eidenai Innovations

Extending MFC Applications with the .NET Framework is the first book to show MFC developers how to boost productivity by incorporating .NET functionality into existing MFC applications. Tom Archer clearly illustrates how using the .NET Base Class Library (BCL)—to complement or replace MFC classes when there is a clear advantage—enables MFC developers to create elegant and robust Windows applications in the most efficient way possible.

Each chapter begins with an introduction that explains the technology, outlines its benefits, lists its pragmatic business uses, and summarizes the required syntax. As is an Archer trademark, this information is solidified with hands-on, practical demo applications.

This book answers the questions MFC developers have about .NET, including:

  • What are the key issues when combining MFC and Managed Extensions? Page 15
  • How can Regular Expressions be used to parse a document for multiple complex pattern types, such as email addresses? Page 84
  • How can hash codes be used to validate users without storing passwords? Page 161
  • How can MFC applications maintain data stored in XML format? Page 274
  • Once an ADO.NET DataSet is filled, how can the data be searched, sorted, and filtered? Page 336
  • What technique is used for reading image data from a database using ADO.NET classes? Page 363
  • What are the options for handling disconnected data concurrency issues? Page 396
  • How can Remoting be used to pass MFC objects between applications? Page 460

The CD-ROM supplies the complete downloadable source code, working samples, and test code from the book, as well as several productivity-enhancing utilities such as a Visual Studio .NET Custom AppWizard.



032117352XB11142003

Downloads

Source Code

Downloadable the Source Code for this title.

Extras

Author's Site

Click for the Author's Web Site related to this title.

Sample Content

Online Sample Chapter

Disconnected Data via ADO.NET and DataSets

Downloadable Sample Chapter

Download the Sample Chapter related to this title.

Table of Contents



Foreword.


Preface.


Acknowledgments.


1. Combining MFC and Managed Extensions.

Introduction.

Writing a Managed Extensions Application.

Writing an MFC Application That Accesses .NET.

Mixed-Mode Programming Issues.

Working with .NET Types.

Summary.



2. Regular Expressions.

Introduction.

Using the Regex Class to Split Strings.

Searching Strings with the Match and MatchCollection Classes.

Processing Groups and Captures.

Parsing and Replacing Strings

Replacing Matches Using Groups and Substitution Patterns.

Putting It All Together: Writing an E-mail Parser.

Summary.



3. File I/O and Registry.

Introduction.

Stream, Readers, and Writers in .NET.

File System Classes.

Accessing the Registry.

Summary.



4. Cryptography, Hash Codes, and Data Encryption.

Introduction.

Cryptography Basics.

Using Hash Codes.

Using Symmetric (Private) Key Encryption.

Using Asymmetric (Public) Key Encryption.

Combining Symmetric Encryption, Asymmetric Encryption, and Hash Codes.

Using Digital Signatures.

Summary.



5. XML and the DOM.

Introduction.

Writing and Reading XML Documents.

The DOM and the XmlDocument Class.

Summary.



6. Disconnected Data via ADO.NET and DataSets.

Introduction.

ADO.NET Basics.

Basic Database Operations with ADO.NET.

Working in Batch.

Working with Row State Information.

Searching, Sorting, and Filtering Data.

Working with Typed Datasets.

Summary.



7. Advanced ADO.NET.

Introduction.

Working with Binary (BLOB) Data.

Associating Related Tables with the DataRelation Class.

Understanding Concurrency.

Summary.



8. Combining ADO.NET and XML.

Introduction.

Serializing XML from a Single DataTable or Multiple Unrelated DataTables.

Serializing Datasets Containing Related Data Tables.

Mapping DataTable Columns to XML Node Types.

Saving Formatted XML.

Writing Schema Information.

Generating XML from a DataTable.

Filling DataSet Objects from XML.

Working with DiffGrams.

Summary.



9. Remoting.

Introduction.

Issues with DCOM.

Remoting and Web Services.

Demo: Writing a Demo Remoting Application.

Wrapping MFC Objects for Remoting.

Selecting Remoting Channels.

Using Asynchronous Callbacks.

Returning Objects to the Server.

Using Remoting in Interprocess Communication.

Implementing a Remoting Server in a Windows Service.

Summary.



10. Event Log, Process Control, and Benchmarking.

Introduction.

Working with the Windows Event Log.

Process Control.

Monitoring System Performance.

Summary.



11. Managing Your Managed Objects.

Introduction.

Using .NET Collections.

Serializing Managed Objects to and from Disk.

Summary.



Appendix A. XML Overview and Syntax.


Appendix B. XPath Overview and Syntax.


Index.

Foreword

Download the Foreword related to this title.

Index

Download the Index file related to this title.

Updates

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership