Re: C# COM Events in VB6
Mike Andrews <[email protected]> Mon, 29 Jun 2009 09:58:13 -0500
| Newsgroups | gmane.comp.windows.devel.dotnet.advanced |
|---|---|
| Message-ID | <[email protected]> |
I finally figured it out. It turns out that in order for VB6 to show the correct event arguments you cannot prepend an underscore to the interface name. Once I remove the underscores from the event argument interfaces all was well in VB6. I took your advice and finally found the answer. Thanks, Mike On Fri, Jun 26, 2009 at 10:08 PM, Mark Hurd <[email protected]> wrote: > On Fri, Jun 26, 2009 at 11:15 PM, Mike > Andrews<[email protected]> wrote: > > I'm having a real tough time here with the COM interop with VB6. > > I know that the instances where VB6 COM interop is needed is dropped > > dramatically, but here at this company some production code is still VB6. > > So I have to make this work. I'm trying desperately to get C# events to > be > > raised correctly in VB6. I have had some measure of success with it but > I'm > > running into some difficulties. > > > > The event arguments I have are detailed and have several layers of > > hierarchy. That hierarchy I have duplicated with COM interfaces and > > implemented those interfaces on the specific objects. > > I assume the code is proprietary and/or too complex to post somewhere, > so you'll have to start with (or reduce to project down to) something > simpler and see if you can either reproduce the problem, and then post > it here, or it will work and you can add (back) more functionality > until it breaks. > > -- > Regards, > Mark Hurd, B.Sc.(Ma.)(Hons.) > > =================================== > View archives and manage your subscription(s) at > http://peach.ease.lsoft.com/archives > =================================== View archives and manage your subscription(s) at http://peach.ease.lsoft.com/archives