Solved

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

Posted on 2002-04-10
1
176 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This article is the first in a series of articles about the C/C++ Visual Studio Express debugger.  It provides a quick start guide in using the debugger. Part 2 focuses on additional topics in breakpoints.  Lastly, Part 3 focuses on th…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The viewer will be introduced to the technique of using vectors in C++. The video will cover how to define a vector, store values in the vector and retrieve data from the values stored in the vector.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

734 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