Solved

What is better for bi-directional communicaton in COM...

Posted on 2002-04-10
1
174 Views
Last Modified: 2010-04-02
callbacks or connection points?

I have read that callbacks are more efficient, then I read somewhere else that connection points are the prefered method.

My server is an out-of-process server and I don't know if that makes a difference or not.
0
Comment
Question by:johndixson
1 Comment
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 6931693
An out-of-process server cannot perform a callback to your process.  Callbacks can only be done from something that shares the same virtual space.  An out-of-process server is by definition, out-of-process.

So you're left with connection points...

Even if it was in-proc, using callbacks defeats the structure of COM.  So I'd suggest that connection points are the right way regardless of whether this is in-proc or out-of-proc.
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
Many modern programming languages support the concept of a property -- a class member that combines characteristics of both a data member and a method.  These are sometimes called "smart fields" because you can add logic that is applied automaticall…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question