Raise VB6 event from C# dll
-
Hi All, I implemented a C# class library and registered it to be visible for COM objects, then i used it from VB6 application and it works fine. Now the problem is that i want to raise an event in the .NET COM and pass it as an event in VB6. i.e. when the .NET COM catched an exception i want it to raise event in the VB6 application to log the event (because the logger works there). Any ideas? Thanks, Mayy
-
Hi All, I implemented a C# class library and registered it to be visible for COM objects, then i used it from VB6 application and it works fine. Now the problem is that i want to raise an event in the .NET COM and pass it as an event in VB6. i.e. when the .NET COM catched an exception i want it to raise event in the VB6 application to log the event (because the logger works there). Any ideas? Thanks, Mayy
-
Hi All, I implemented a C# class library and registered it to be visible for COM objects, then i used it from VB6 application and it works fine. Now the problem is that i want to raise an event in the .NET COM and pass it as an event in VB6. i.e. when the .NET COM catched an exception i want it to raise event in the VB6 application to log the event (because the logger works there). Any ideas? Thanks, Mayy
I'm stuck on the same thing right now. I think one option is to look up design patterns read up on the "Sender Observer Model" it will allow you to trigger a subroutine on the VB form and pass it arguements as well. This will give you the same effect but it's not really answering the question I know. It is an alternative though. :(
Many Thanks, Kiran