Is it possible to create a VB6 interface that can be implemented in a .NET class? I have the need to call a method in an existing VB6 class that behind the scenes will call either a VB6 or .NET class that utilize the same interface. For instance....
would behind the scenes be utilizing a VB6 class that implemented a 'DoSomething' interface method. Similarly...
would utilize a .NET class that implemented a 'DoSomething' interface method. My vision for this is that MyObject would be a VB6 interface that contained the clsVB6 and MyObject would interop to the clsNET. Have I thought this out correctly? It's convoluted but the 'MyObject.DoSomething' line is called in tons of VB6 code and I have to find a way to implement this without having to change all of the existing VB6 code that calls MyObject.
Thanks in advance for any help.
Code:
MyObject.Type = "clsVB6"
MyObject.DoSomething(intID)
would behind the scenes be utilizing a VB6 class that implemented a 'DoSomething' interface method. Similarly...
Code:
MyObject.Type = "clsNET"
MyObject.DoSomething(intID)
would utilize a .NET class that implemented a 'DoSomething' interface method. My vision for this is that MyObject would be a VB6 interface that contained the clsVB6 and MyObject would interop to the clsNET. Have I thought this out correctly? It's convoluted but the 'MyObject.DoSomething' line is called in tons of VB6 code and I have to find a way to implement this without having to change all of the existing VB6 code that calls MyObject.
Thanks in advance for any help.