Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2002-04-10
1
Medium Priority
?
180 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 400 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

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
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 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 learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

927 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