twotoed

Hi everyone,

I have a C# dll which is called by a VB.net program. I need a callback in the dll to return data back to VB. I understand I need to use a delegate to make the callback. The problem is, I can't find any good examples. Does anyone out there know of any good VB-C# dll callback examples Any help actually is much appreciated.



Re: Visual C# General Callback from C# dll to Visual Basic

Ross Dargan

It should be fairy seamless - just create an event in the c# dll and plug into it in vb as you would a normal event

I havnt done much VB but normaly they are quite simmilar. If you have no replies within a couple of days ill do a demo for you.

Ross






Re: Visual C# General Callback from C# dll to Visual Basic

twotoed

Thanks, that would be awesome.




Re: Visual C# General Callback from C# dll to Visual Basic

twotoed

I got it. It's amazingly simple. I think I was making it harder than it needed to be. I appreciate your willingness to help!



Re: Visual C# General Callback from C# dll to Visual Basic

Ross Dargan

No problem, its one of them things that you think should be hard, but really is quite straight forward!