1

What is an interface connected to a com object?

5
  • 2
    Do you want documentation links? Are you after something specific? Commented Feb 15, 2011 at 15:03
  • Ninja OP ! One question per minute. Commented Feb 15, 2011 at 15:04
  • Ist becuase I am going over new code right now and I have a lot of questions. Commented Feb 15, 2011 at 15:05
  • What does "connected" mean here? Do you have any example to illustrate that? Commented Feb 15, 2011 at 15:06
  • I am not sure myself. Someone wrote that a com object has a few interfaces. Commented Feb 15, 2011 at 15:07

2 Answers 2

2

Each object implements one or more COM interfaces.

A COM interface is a fixed description of what an object can do - in terms of C++ that's a class without member variables and with pure virtual member functions only. A COM class is an implementation of one or more interfaces - in terms of C++ it's a class (usually with member variables) with actually implemented member functions.

When you say that a COM class "has" some COM interfaces it means that it implements them and can retrieve a pointer to each of those interfaces - that's very similar to an upcast in terms of C++, but is done with IUnknown::QueryInterface() function of the actual COM class.

Sign up to request clarification or add additional context in comments.

Comments

1
"COM Interfaces
The separation between service user and implementation is done by indirect function 
calls. A COM interface is nothing more than a named table of function pointers 
(methods), ..." 


See more information at The COM Programmer's Cookbook

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.