Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HOWTO ?: Access callback from outside COM

Status
Not open for further replies.

JLoewner

Programmer
May 29, 2003
1
DE
I have an service application which also has an DCOM object for a GUI interface communications.

Everything works well aside one point:
I want to call my client back by a DCOM connectionpoint callback procedure (to set a quick changing status field).
This works fine when I call from the client and stay inside the DCOM and call the client back (by a test procedure).
When I want to call the client back from the main (service) application it doesn't work.
I have tried it several ways. Either the callback targets "nirwarna" or I get exceptions.
I guess the problem is that each client has a thread of it's own for calling it back.

So the question is:
How can I access my callbackfuntion from outside the DCOM and reach my client (either single client or broadcast)?

I would be very thankful if somebody can help me as I am stuck now for a few days by the problem.

Best regards
Juergen Loewner
 
if you have a server object that you want to have multiple clients connect to then you can use a intermediate class that checks if the requested is already instanciated and pass back a reference to it or instanciate a new one and pass it back. Each client will be hooked to the server component. If you fire an event all clients will be notified.

Now are you trying to do this in VB or VC++?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top