
Extending MFC Applications with the .NET Framework
Addison Wesley (Publisher)
Published on 8. January 2004
Book
Mixed media product
656 pages
978-0-321-17352-2 (ISBN)
Description
The Microsoft Found Classes (MFC) compose the class library for Microsoft's Visual C++. First introduced over 10 years ago, this class library is now in use by approximately 1.5 million programmers, and is the subject of many books, articles, and Web sites. MFC developers, along with their hundreds of thousands of existing applications, are not going to migrate to .NET overnight. On the other hand, there is no doubt that .NET is the future of Microsoft development. Therefore, instead of writing yet another .NET book trying to move MFC developers to .NET entirely, this book attempts to get these MFC developers on board today by showing them how to continue using MFC and combine it with .NET to become more productive. Then over time, MFC developers will move to .NET. For now, this book focuses on this untapped group of MFC developers who fall into the category of "late adopters". While there are several books on COM and .NET interoperability, they really focus more on making your new .NET apps interact with your legacy apps. We don't know of another book quite like this one.
More details
Language
English
Place of publication
New Jersey
United States
Publishing group
Pearson Education (US)
Target group
College/higher education
Dimensions
Height: 234 mm
Width: 177 mm
Thickness: 29 mm
Weight
964 gr
ISBN-13
978-0-321-17352-2 (9780321173522)
Copyright in bibliographic data and cover images is held by Nielsen Book Services Limited or by the publishers or by their respective licensors: all rights reserved.
Schweitzer Classification
Persons
Tom Archer is an award-winning programmer and principal of the Archer Consulting Group, which provides training, management and project consulting, and contract programming worldwide. He is a cofounder of CodeGuru, a frequent contributor to CodeProject, and the author of ten books, including the best-selling Inside C#, now in its second edition (Microsoft Press, 2002).
Nishant Sivakumar is a Microsoft Visual C++ MVP and a member of the CodeProject team. He has written more than a hundred online articles on Visual C++ and .NET programming.
032117352XAB11142003
Nishant Sivakumar is a Microsoft Visual C++ MVP and a member of the CodeProject team. He has written more than a hundred online articles on Visual C++ and .NET programming.
032117352XAB11142003
Content
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.
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.