Solved

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

Posted on 2002-04-10
1
170 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 Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
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 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.

758 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

19 Experts available now in Live!

Get 1:1 Help Now