Have one to sell? Sell yours here
COM IDL and Interface Design
 
See larger image
 
Tell the Publisher!
I'd like to read this book on Kindle

Don't have a Kindle? Get your Kindle here, or download a FREE Kindle Reading App.

COM IDL and Interface Design [Paperback]

Al Major (Author)
3.9 out of 5 stars  See all reviews (14 customer reviews)


Available from these sellers.



Book Description

Professional February 1999
What is the Subject Area?

The Interface Definition Language (IDL) provides a way of describing COM interfaces that doesn't depend on any other programming language. As such, it is currently the best and most generic means available for expressing your interface and object designs. More than that though, IDL is fundamental to the generation of the type libraries that are becoming pervasive within the COM architecture, and the marshaling code that enables COM remote procedure calls. Well-written IDL can enhance the performance of your COM components --- it's just too important to be left to the Wizards.

This book clearly explains the syntax and usage of IDL, but that's only the beginning of the story. You'll also learn how to write efficient interfaces in a way that facilitates their use from languages other than C++. You'll also get a comprehensive (over 40) list of interface and object design techniques and guidelines that shorten your design learning curve and pay for the price of the book.

The book places all of this in context by demonstrating C++/ATL code that implements an On-Line Auction. You'll see sophisticated COM techniques, such as Alternate Identity, Delayed Initialization, Split Identity, multiple scriptable IDispatch interfaces, persistence delegation, marshaling structures with embedded pointers, using IMallocSpy, etc.

The code is very far from being an academic exercise! The application functionality is realistic and the examples demonstrate how to build COM Object Models that work with cutting-edge technologies such as OLE-DB, DHTML controls, STL collections, etc. The architecture and interfaces are carefully designed to be used from any programming language and the book proves this! The COM client bindings chapter shows you how to build exactly the same front end to the Auction Server in VB, Java, C++/MFC, DHTML/VBScript and DHTML/JScript!

What's Great About this Book?

- Explains the syntax and features of the Interface Definition Language.
- Analyzes the issues surrounding COM marshaling and memory management.
- Teaches how to design your interfaces to be used from any client language.
- Examines common IDL programming pitfalls.
- Describes how COM types, interface and interface protocols bind to
the different client languages.
- Shows you how to design your application for maximum portability.
- Implements a realistic COM application with a fully-featured object model.

Who is this Book for?

This title is aimed primarily at C++ developers with a working knowledge of COM and ATL who want to improve the efficiency of their interfaces and make using them from client languages as intuitive as possible.

Its focus on interface programming should also make it valuable to experienced developers (including CORBA programmers) who are interested in learning about COM style Interface Programming. Because of the way it treats the design of COM object models, it should also prove helpful to architects and project leads who are responsible for implementation of object oriented systems that use the COM infrastructure.


Customers Who Bought This Item Also Bought


Editorial Reviews

Amazon.com Review

An expert-mode guide to the inner workings of the Distributed Component Object Model (DCOM), COM IDL and Interface Design also provides some excellent sample code for objects that are useful for an e-commerce Web site. The author argues that you can design with Interactive Data Language (IDL) manually and then write the code behind it in C++, Visual Basic, or Java.

The book begins with a quick tour of Component Object Model (COM) basics, including interface diagrams and dual interfaces (used for scripting COM objects in VB). Next comes material on remote method calls and DCOM, including some excellent material on apartment models and marshalling. There is a thorough guide to all IDL data types, whether basic types, arrays, references, and pointers or VB automation data types (such as BSTRs and Variants). A chapter on application design displays the author's considerable knowledge of COM and software patterns.

The heart of this book is the author's case study of COM objects needed for an electronic auction Web site. After walking through the design process, the author creates all the relevant COM objects in IDL. Next he shows client-side test programs written in Visual Basic, Visual J++, Visual C++ (and Microsoft Foundation Class [MFC]), VBScript, and JavaScript. The last part of the book builds the server-side objects (based on his IDL) in C++ using the leading-edge ActiveX Template Library (ATL) for fast performance. The author gives you everything you need here including several custom extensions to ATL.

Filled with expert knowledge, COM IDL and Interface Design turns out to be one of the best available guides for advanced development with distributed objects in DCOM on the Microsoft platform. --Richard Dragan

From the Publisher

What's Great About this Book?

- Explains the syntax and features of the Interface Definition Language.
- Analyzes the issues surrounding COM marshaling and memory management.
- Teaches how to design your interfaces to be used from any client language.
- Examines common IDL programming pitfalls.
- Describes how COM types, interface and interface protocols bind to
the different client languages.
- Shows you how to design your application for maximum portability.
- Implements a realistic COM application with a fully-featured object model.

Who is this Book for?

The primary audience of the book is the professional developer who is using C++ / ATL to build sophisticated COM object models.

However, developers in other languages can pick up the most important concepts of COM style interface-based programming. Architects and project leads working on COM object models can benefit from much of the language-independent material in the book. In addition, the experienced CORBA programmer looking for a quick intro into COM style interface design will find this a great read.


Product Details

  • Paperback: 437 pages
  • Publisher: Apress; 1st edition (February 1999)
  • Language: English
  • ISBN-10: 1861002254
  • ISBN-13: 978-1861002259
  • Product Dimensions: 9 x 7.3 x 1.1 inches
  • Shipping Weight: 1.6 pounds
  • Average Customer Review: 3.9 out of 5 stars  See all reviews (14 customer reviews)
  • Amazon Best Sellers Rank: #1,587,730 in Books (See Top 100 in Books)

 

Customer Reviews

14 Reviews
5 star:
 (6)
4 star:
 (5)
3 star:    (0)
2 star:
 (2)
1 star:
 (1)
 
 
 
 
 
Average Customer Review
3.9 out of 5 stars (14 customer reviews)
 
 
 
 
Share your thoughts with other customers:
Most Helpful Customer Reviews

12 of 12 people found the following review helpful:
5.0 out of 5 stars Best Book on writing IDL to date, April 13, 1999
By A Customer
This review is from: COM IDL and Interface Design (Paperback)
I am a professional programmer for Microsoft with over 20 years experience. I have been writing COM code for nearly 2 years. This is an excellent book, for the professional. This book delivers what it promises. It's not about C++; it is about IDL and COM.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


5 of 5 people found the following review helpful:
5.0 out of 5 stars An Information Packed Book, March 24, 1999
By A Customer
This review is from: COM IDL and Interface Design (Paperback)
It might have been more accurate to title this book "Interface Design and COM IDL". The first half of the book focuses only on IDL, a subject that has not been systematically treated in any other COM book. It contains very clear explanations of COM remoting and marshaling and the use of IDL within the remoting infrastructure. The diagrams are excellent. The second half contains a detailed code example that shows both client and server bindings. I wish I'd had this book when I was writing my first VB and HTML plug -ins. It would have saved me a lot of time figuring stuff out, especially the use of alternate identity to implement "property get as QI". The server chapter is a gold-mine of code showing the application of advanced COM techniques. The re-usable ATL code for split / alternate identity alone is worth the price of the book.

Once again Wrox delivers value.

Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No


6 of 7 people found the following review helpful:
5.0 out of 5 stars Excellent in exposing how interfaces should be designed., May 21, 1999
By A Customer
This review is from: COM IDL and Interface Design (Paperback)
I have been a COM programmer for Texas Instruments for about 2 years. I taught myself how to program in COM by reading various COM books that gave excellent info about COM programming but, very little info about the cryptic looking IDL file and how to properly design interfaces. Dr. Al Major exposes how interfaces should be designed with clarity and reason.
Help other customers find the most helpful reviews 
Was this review helpful to you? Yes No

Share your thoughts with other customers: Create your own review
 
 
 
Most Recent Customer Reviews











Only search this product's reviews



Tag this product

 (What's this?)
Think of a tag as a keyword or label you consider is strongly related to this product.
Tags will help all customers organize and find favorite items.
Your tags: Add your first tag
 

Sell a Digital Version of This Book in the Kindle Store

If you are a publisher or author and hold the digital rights to a book, you can sell a digital version of it in our Kindle Store. Learn more

Customer Discussions

This product's forum
Discussion Replies Latest Post
No discussions yet

Ask questions, Share opinions, Gain insight
Start a new discussion
Topic:
First post:
Prompts for sign-in
 

Search Customer Discussions
Search all Amazon discussions
   


Listmania!


Create a Listmania! list

So You'd Like to...


Create a guide


Look for Similar Items by Category


Look for Similar Items by Subject