Solved

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

Posted on 2002-04-10
1
171 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now