0
我创建了一个VB.net DLL使用Visual Basic速成很简单,这是我的代码:Vb.net DLL方法不可见
Public Class Class1
Public Function SayHello() As String
Return "Hello"
End Function
End Class
- 我想用从Java这个DLL与JNA ,但是Eclipse比我的DLL中不存在的程序“SayHello”要好。
- 当我使用像“Dependency Walker”这样的工具时,我的功能不可见。
所以我的问题:我怎样才能使这个功能可调用和可见?
谢谢。文森特。
JNA只能访问C++ dll。你将不得不围绕VBNet库构建一个C++包装器。 – ortis
可能重复[调用托管代码从非托管C](http://stackoverflow.com/questions/10821109/calling-managed-code-from-unmanaged-c) – xxbbcc
可能重复的[我如何调用.NET代码Java的?](http://stackoverflow.com/questions/283679/how-can-i-call-net-code-from-java) – Mark