SimonSellick
Programmer
Hi,
Sorry if this is a trivial one - it seems a bit different from the FAQ on the subject.
I want to call a VB6 DLL from a .net app. The .net part all seems OK, but it complains that it cannot find the entrypoint asked for. I have tried calling it from a VB6 app and get the same result, so the problem must be that the entrypoint is not visible.
The DLL is an ActiveX DLL project containing a Class. The Class defines a static method 'reverse' that accepts a string and returns it reversed.
If I create a VB6 project and add a reference to the DLL it does not show the 'reverse' entry point. Is there a simple way to fix this?
Source of the DLL follows.
Any help appreciated.
Sorry if this is a trivial one - it seems a bit different from the FAQ on the subject.
I want to call a VB6 DLL from a .net app. The .net part all seems OK, but it complains that it cannot find the entrypoint asked for. I have tried calling it from a VB6 app and get the same result, so the problem must be that the entrypoint is not visible.
The DLL is an ActiveX DLL project containing a Class. The Class defines a static method 'reverse' that accepts a string and returns it reversed.
If I create a VB6 project and add a reference to the DLL it does not show the 'reverse' entry point. Is there a simple way to fix this?
Source of the DLL follows.
Code:
' T1.cls - test DLL project called from .net.
'
' v001 21/04/10 Simon Sellick - initial version.
Option Explicit
Public Static Function reverse(s As String) As String
reverse = StrReverse(s)
End Function
' end