VB.NET and VB 6 ActiveX control

Jun 16 2004 9:13 AM
I have a project that was written originally in VB 6 and uses some VB 6 and VC++ OCX's. Now, we're moving to VB.NET for an added partion of the project. But, we don't want to rewritte all of the VB 6 and VC++ 6 code in C# and VB.NET. So, I'm thinking if I can write a VB 6 wrapper DLL that calls the original VB 6 and VC++ OCX's and the VB.NET code calls the VB 6 wrapper DLL after the DLL is imported through the TLBIMP since the VB.NET code cannot directly use VC++ and VB 6 OCX's. This should be fine, right? I've tried it out, but could not make it work. Can some of the Guru's who have some experience on this kind of issue please help me out? Any kind of help will be fully appreciated. Thanks in advance.

Answers (1)