Essential IDL: Interface Design for COM

Martin Gudgin

  • 出版商: Addison Wesley
  • 出版日期: 2000-12-15
  • 售價: $1,670
  • 貴賓價: 9.5$1,587
  • 語言: 英文
  • 頁數: 353
  • 裝訂: Paperback
  • ISBN: 0201615959
  • ISBN-13: 9780201615951
  • 海外代購書籍(需單獨結帳)

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

相關主題

商品描述


Description

The in-depth, top-down guide to COM interface design with IDL.

  • Efficient IDL techniques for both server-side and client-side development.
  • From the basics to advanced techniques, such as aliasing and MIDL-generated marshalling code.
  • Includes complete IDL reference: data types, modifiers, keywords, and attributes.
Virtually all COM projects should begin with IDL, because defining interfaces is the key to successfully designing any COM project. Essential IDL is the first book that focuses entirely on IDL, providing in-depth explanations of both the language and its applications. Essential IDL starts by explaining why IDL exists, what it is for, and what can be done with it. All aspects of IDL syntax are covered: basic interface definition, complex data types, array handling, marshalling issues, and more. From start to finish, the focus is pragmatic. Expert COM developer Martin Gudgin presents extensive IDL code samples and resulting C++, Java, and VB language mappings, demonstrating exactly how to use IDL constructs sensibly and efficiently in both client-side and server-side projects. Gudgin takes a top-down approach, starting with interfaces, then drilling down into simple data types, complex types, pointers and arrays; and finishing with aliasing and other esoteric IDL constructs. The second half of the book is a complete reference guide to all of IDL's data types, modifiers, keywords and attributes.

Martin Gudgin is Principal Scientist at DevelopMentor. He has been involved in COM-based software projects as a consultant in the financial and insurance sectors, and has written courseware for COM technologies. He has been working with Microsoft Transaction Server since 1996, and delivered MTS training to Microsoft staff throughout Europe. He is a Microsoft Certified Solution Developer (MCSD).

Back to Top


Appropriate Courses

Windows Programming.

Back to Top


Table Of Contents

1. Hello, IDL.
What Is IDL?
Defining Interfaces.
Adding Parameters.
More on Directionality.
Conclusions.

2. Structure of an IDL File.
Interfaces and Type Information.
Inside the Library Block.
Versioning Type Libraries.
Producing C++ Type Information.
Outside the Library Block.
Building a Proxy-Stub DLL.
Interface Definitions, Type Libraries and the Oleautomation Attribute.
The Local Attribute.
Importing Other Files.
Importing Files in the Library Block.
Coclasses.
Conclusions.

3. Data Types and Interface Issues.
Primitive Data Types.
Signed and Unsigned Data Types.
Char vs Byte.
Char vs Wchar_t.
LPOLESTR vs BSTR.
Enumerated Types.
Object References.
Structures.
Unions.
The VARIANT.
Typedefs.
Properties.
Interface Inheritance.
Dispatch Interfaces.
Conclusions.

4. Pointers and Arrays.
Pointer Basics.
Pointers and Const.
Pointer Semantics.
Top-level vs Embedded Pointers.
Pointers and Language Mappings.
Object References and Pointers.
Arrays.
Fixed Size Arrays.
Conformant Arrays.
Conformant Pointers.
Conformant Pointers as Output Parameters.
Simulating Fixed Size Arrays Using Conformance.
Multi-dimensional Conformant Pointers.
Arrays as Structure Members.
Jagged Arrays.
SAFEARRAYs.
Conclusions.

5. Aliasing.
Method Aliasing.
Type Aliasing.
More Type Aliasing.
Conclusions.

6. Asynchronous COM.
Asynchronous Calls.
Client-side Asynchrony.
Server-side Asynchrony.
Conclusions.

7. IDL Types.
8. IDL Type Modifiers.
9. IDL Keywords.
10. IDL Attributes.
Bibliography.
Index. 0201615959T04062001


Back to Top

商品描述(中文翻譯)

描述

深入的 COM 介面設計指南,使用 IDL。
- 針對伺服器端和客戶端開發的高效 IDL 技術。
- 從基礎到進階技術,例如別名和 MIDL 生成的封送處理代碼。
- 包含完整的 IDL 參考:數據類型、修飾符、關鍵字和屬性。

幾乎所有的 COM 專案都應該從 IDL 開始,因為定義介面是成功設計任何 COM 專案的關鍵。《Essential IDL》是第一本完全專注於 IDL 的書籍,提供對該語言及其應用的深入解釋。《Essential IDL》首先解釋了 IDL 存在的原因、用途以及可以用來做什麼。書中涵蓋了 IDL 語法的所有方面:基本介面定義、複雜數據類型、數組處理、封送處理問題等。從頭到尾,重點是務實的。專家級的 COM 開發者 Martin Gudgin 提供了大量的 IDL 代碼範例及相應的 C++、Java 和 VB 語言映射,展示了如何在客戶端和伺服器端專案中明智且高效地使用 IDL 結構。Gudgin 採取自上而下的方法,從介面開始,然後深入探討簡單數據類型、複雜類型、指針和數組,最後介紹別名和其他深奧的 IDL 結構。書的後半部分是 IDL 所有數據類型、修飾符、關鍵字和屬性的完整參考指南。

Martin Gudgin 是 DevelopMentor 的首席科學家。他曾作為顧問參與金融和保險行業的基於 COM 的軟體專案,並為 COM 技術編寫課程材料。他自 1996 年以來一直在使用 Microsoft Transaction Server,並在整個歐洲為 Microsoft 員工提供 MTS 培訓。他是 Microsoft 認證解決方案開發人員 (MCSD)。

適合的課程

Windows 程式設計。

目錄

1. 你好,IDL。
- IDL 是什麼?
- 定義介面。
- 添加參數。
- 更多關於方向性。
- 結論。

2. IDL 文件的結構。
- 介面和類型信息。
- 庫區塊內部。
- 版本控制類型庫。
- 生成 C++ 類型信息。
- 庫區塊外部。
- 建立代理-存根 DLL。
- 介面定義、類型庫和 Oleautomation 屬性。
- 本地屬性。
- 導入其他文件。
- 在庫區塊中導入文件。
- Coclasses。
- 結論。

3. 數據類型和介面問題。
- 原始數據類型。
- 有符號和無符號數據類型。
- Char 與 Byte。
- Char 與 Wchar_t。
- LPOLESTR 與 BSTR。
- 列舉類型。
- 對象引用。
- 結構。
- 聯合。
- VARIANT。
- Typedefs。
- 屬性。
- 介面繼承。
- 分派介面。
- 結論。

4. 指針和數組。
- 指針基礎。
- 指針和常量。
- 指針語義。
- 顶层指针与嵌入指针。
- 指針和語言映射。
- 對象引用和指針。
- 數組。
- 固定大小數組。
- 符合性數組。
- 符合性指針。
- 符合性指針作為輸出參數。
- 使用符合性模擬固定大小數組。