Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.
Thanks,
Igor

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.

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.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |