HighTechTalks DotNet Forums  

managed dll and callback

Dotnet Framework (Interop) microsoft.public.dotnet.framework.interop


Discuss managed dll and callback in the Dotnet Framework (Interop) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
curiousdotnet
 
Posts: n/a

Default managed dll and callback - 09-13-2007 , 01:48 AM






I've got a managed dll that does certain remote operations and a client app.
They are both written in c#. How do I implement a callback method in the
client app for the dll to call when the remote ops state changes. Does it
involve using delegates on the client app? And how to do the same if the
client app is an unmanaged vb6 app?

Thanks.


Reply With Quote
  #2  
Old   
curiousdotnet
 
Posts: n/a

Default Re: managed dll and callback - 09-14-2007 , 03:12 AM






Hi Mattias,

Thanks for your response.

Could you point me at an example of using event delegate to initial
callbacks from a managed dll to a method in a client C# app? And why would a
COM interface make VB6 app easier as a callback target?

Thanks.

"Mattias Sjögren" wrote:

Quote:
Does it involve using delegates on the client app?

You can use delegates (by themselves or as events) or an interface,
depending on the granularity you want.


And how to do the same if the
client app is an unmanaged vb6 app?

Then it's probably easier to use a (COM) interface.


Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.