Vb6 dll

Microsoft Visual basic 6.0 win32 profess...
September 10, 2009 at 20:41:40
Specs: Windows XP
I have a DLL written in VB6 and it calls a function that calls an OLE object that returns a string. Simply the function declaration is something like this:
Public Function myFunc(myString As String) {}

Is it possible to call another (.NET Based) DLL from this function and pass the string to it?

I have tried to convert and rewrite this DLL in .NET but for some reason the function on the OLE object does not get called unless it's compiled in VB6.


See More: Vb6 dll

Report •

September 11, 2009 at 05:23:52

Report •

September 14, 2009 at 08:47:00
I have tried this example with Visual Studio 2008 and VB6. I have added a reference to PhysServer2 in VB6 and it's there but for some reason I can't access any of its properties. Any Ideas? I registered the VS2008 DLL with COM interop and made it COM visible.

Report •

September 15, 2009 at 13:16:47
I'd need to see what you're doing, but I don't have VS2008 to play along. Make sure the properties are declared Public, they're declared in the Interface, and you use a strong name.

Report •

Related Solutions

Ask Question