Alex Rivera | Logout

What is the Component Object Model (COM)? Is it language-dependent?

Asked 2009-10-29T18:57:57.583
15

I'm new to COM, and I don't know what it is or why it exists.

Is this a programming methodology like OOP? Do programming languages have to support it? (with some special keywords or something)

When I asked my professor about it, he said:

COM is a binary-stable way to do OOP. We need to know binary-layout (something..something..)

I've no idea what it means. Some people say it is used for code reuse. OOP does a good job at that already, so then why did this COM evolve in the first place?

What is it with C++ and COM? Wherever I see COM, it's is always described with abstract C++ examples. Is it only for C++?

Can any one show me a case or exmaple so that I can understand the need for COM? What are the requirements for learning this, so I can write my own components?

Edit
Report

1 Answer

1

Component Object Model is a standard defined by Microsoft, for a language-independent binary object interface, i.e. it enables different OO languages to pass around objects and call methods on them.

answered 2009-10-29T19:03:55.480

Your Answer