I will greatly appreciate an answer to this question too. Months ago we had the same problem (although in a C# ActiveX / Excel VBA client environment) and were not able to come up with a good solution, except for writing a C++ COM shim between the two tiers. Here's a blog post in case someone is interested in the details: http://www.delera.com/blog/?p=14
Kamen -----Original Message----- From: Discussion of advanced .NET topics. [mailto:[EMAIL PROTECTED] On Behalf Of Magnus Werner Sent: Monday, August 14, 2006 4:10 PM To: [email protected] Subject: [ADVANCED-DOTNET] VB6 and Events from .NET ActiveX control I've been implementing an ActiveX control using C#. The control has a source interface marked using the ComSourceInterfaces attribute like this [ComSourceInterfaces(typeof(ISimpleSource),typeof(IMweSource))] Now, when I test this control in the ActiveX Control Test Container it works fine. I can call the methods and I receive the events from the control. But when I try to use the same control in VB6 (I drop it on to a form) a stub is generated in VB6 for the event. However, this stub is never called. It seems like VB6 ignores the event or does not receive it. Does anyone have an explanation for this behaviour? Kind regards, Magnus Werner =================================== This list is hosted by DevelopMentor- http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com =================================== This list is hosted by DevelopMentorĀ® http://www.develop.com View archives and manage your subscription(s) at http://discuss.develop.com
