COM Programming by Example: Using MFC, ActiveX, ATL, ADO, and COM+
暫譯: COM 程式設計範例:使用 MFC、ActiveX、ATL、ADO 和 COM+

John E. Swanke

  • 出版商: CMP Books
  • 出版日期: 2000-01-06
  • 售價: $2,990
  • 貴賓價: 9.5$2,841
  • 語言: 英文
  • 頁數: 384
  • 裝訂: Paperback
  • ISBN: 1929629036
  • ISBN-13: 9781929629039
  • 相關分類: MFC
  • 已絕版

買這商品的人也買了...

商品描述

Topic: Windows Programming

Author: John E. Swanke

Key Benefits:

 

Implement client/server applications with ease with this example oriented approach to the details and implementation of COM technology in network applications.

If there was ever a subject that lent itself to examples, COM is it! None of the APIs, configuration files, classes, wizards, or helper applications of COM can stand alone you need an example of how to use them together in order to know how to do anything. This book will do for COM what the author's recent MFC books have done to teach that technology. You get a quick but thorough overview of COM technology, and dozens of real-life examples that can be used to accomplish virtually all of the requirements of a COM project.

COM Basics are addressed succinctly in the first three chapters. You will learn how to:

COM Examples provided in this book will enable you to implement this client/server standard with a minimum of effort whether you are a COM novice or an old hand. They demonstrate how to:

COM Project Building Blocks are provided on the companion CD-ROM along with a special utility, the authors own SampleWizard, that will interactively insert the examples into your applications.

John E. Swanke has worked with COM since its inception. He also has over six years experience with Visual C++ and MFC creating CAD systems, network management and computer telephony applications. He is an accomplished author having written articles on topics that range from reverse engineering to portability issues. John successfully established his method of teaching by example method with two MFC titles published in 1999: Visual C++ MFC Programming by Example and VC++ MFC Extensions by Example. He believes in the adage that an example is worth a kilobyte i.e. each illustrative example is worth four or five times the amount of text it would take to illustrate the same technology. John is currently a program developer at NeuVis, Inc. in Shelton, CT and can be reached at .

 

  • Use MFC, ActiveX, ATL, ADO and COM+ to develop COM applications
    • Use the COM API to create a COM object.
    • Prepare your DLL or EXE so the COM API can access the class objects inside.
    • Exchange data with your COM objects by passing arguments in any function call, or implementing automatic serialization and reconstruction of your data through a network port.
    • Address other details of COM implementation including deriving the functionality of another COM object in your own, and security matters.
    • Implement COM+ and Microsoft Transaction Server (MTS) to permit massive scaling.
    • Create and access COM objects using an entire range of COM techniques including C++, MFC, ATL, Visual Basic, and Visual J++.
    • Use COM to automatically send data between your client and the COM server.
    • Write a COM+ object that will engage the event server provided by Windows 2000.
    • Use Microsoft's Active Data Objects (ADO) library to access a database.

商品描述(中文翻譯)

主題:Windows 程式設計

作者:John E. Swanke

主要好處:

輕鬆實現客戶端/伺服器應用程式,透過這種以範例為導向的方法,深入了解 COM 技術在網路應用程式中的細節與實作。

如果有任何主題適合用範例來說明,那就是 COM!COM 的 API、配置檔、類別、精靈或輔助應用程式都無法獨立運作,您需要範例來了解如何將它們一起使用,才能知道如何進行任何操作。本書將為 COM 提供與作者最近的 MFC 書籍相同的教學效果。您將快速而全面地了解 COM 技術,並獲得數十個可用於滿足幾乎所有 COM 專案需求的實際範例。

COM 基礎在前三章中簡明扼要地介紹。您將學習如何:

本書提供的 COM 範例將使您無論是 COM 新手還是老手,都能以最小的努力實現這一客戶端/伺服器標準。它們展示了如何:

本書的 COM 專案構建模塊隨附於光碟中,並提供一個特殊的工具,作者自創的 SampleWizard,該工具將互動式地將範例插入到您的應用程式中。

John E. Swanke 自 COM 創立以來便一直在使用它。他在 Visual C++ 和 MFC 上擁有超過六年的經驗,創建 CAD 系統、網路管理和計算機電話應用程式。他是一位成功的作者,撰寫過從逆向工程到可攜性問題等各種主題的文章。John 在 1999 年出版的兩本 MFC 書籍中成功建立了他的「以範例教學」方法:《Visual C++ MFC Programming by Example》和《VC++ MFC Extensions by Example》。他相信「範例的價值相當於一千字」這句話,即每個示範範例的價值是用相同技術所需文字的四到五倍。John 目前是 NeuVis, Inc. 在康乃狄克州 Shelton 的程式開發人員,您可以通過 聯繫他。

使用 MFC、ActiveX、ATL、ADO 和 COM+ 開發 COM 應用程式
- 使用 COM API 創建 COM 物件。
- 準備您的 DLL 或 EXE,以便 COM API 可以訪問內部的類別物件。
- 通過在任何函數調用中傳遞參數,或通過網路端口實現自動序列化和重建數據,與您的 COM 物件交換數據。
- 處理 COM 實作的其他細節,包括在自己的 COM 物件中衍生另一個 COM 物件的功能,以及安全性問題。
- 實現 COM+ 和 Microsoft 交易伺服器 (MTS) 以允許大規模擴展。

- 使用包括 C++、MFC、ATL、Visual Basic 和 Visual J++ 在內的各種 COM 技術創建和訪問 COM 物件。
- 使用 COM 自動在客戶端和 COM 伺服器之間發送數據。
- 編寫一個 COM+ 物件,該物件將使用 Windows 2000 提供的事件伺服器。
- 使用 Microsoft 的 Active Data Objects (ADO) 庫訪問數據庫。