smwikipedia
smwikipedia

Reputation: 64423

Some basic COM question

I have just finished my first COM server DLL. And it runs smoothly. So I'd like to show my understanding for now and hear your critics.

1- How COM simply works? COM - "The Call Chain"

COM Lib methods -> Traditional DLL exports -> Classes encapsulated in the COM DLL

2- With C++, the benefits like "interface" in OOP can only be taken advantage of at the source level. With COM, these benefits can be used at a binary level.

3- Some illustration about interface

&pInterface -------> pInterface ----------> Interface-----------------> methods

  Ixx **         Ixx *      (method table)

 (void **)

A Interface is a data structure in memory. It's nothing but a memory area containg a method table.

Is my understanding alright?

Thanks for your revision.

Upvotes: 0

Views: 134

Answers (2)

Oleg
Oleg

Reputation: 222017

you can find a lot of interesting information about COM at www.codeproject.com (see http://www.codeproject.com/KB/COM/index.aspx?#COM/DCOM/COM+%20-%20Beginners for example)

Upvotes: 0

Richard
Richard

Reputation: 109170

Is my understanding alright?

Somewhat, you are summarising very heavily so hard to be sure.

If you want to know COM at this level, two of the best sources are "Essential COM", Don Box (pre-Windows 2000 so significant details of "Rental" threading model don't match the "Neutral" model); and the COM Specification (from MS, years ago, and was online but cannot quickly find a link now).

Upvotes: 3

Related Questions