I need to be able to raise an c# event - and that event to be listened to in VB6. However I can't find a way to do this - any suggestions?
Rob
Printable View
I need to be able to raise an c# event - and that event to be listened to in VB6. However I can't find a way to do this - any suggestions?
Rob
What are you trying to do? Is this a .Net DLL being referenced in VB6 or a VB6 com component being referenced in the C# application? Or are they completely seperate and you want one to work with the other?
Thanks for the reply. I am trying to fire an event from c# and this to be listened to by vb6 com.
I found out how to do it:
just place this before the class definition:
[ComSourceInterfaces(typeof(AttributesEventInterface))]
[ClassInterface(ClassInterfaceType.AutoDual)]
[Guid("4AF51BE7-6C50-4422-8F76-40DC35219780")]
Events are slower than directly calling a method. Why not just call your method in the com object?