What i have
a) I used the jna library.
b) My dll is a native vb.net DLL file.
c) You can check this link for more information on the dll link
My source code is as follows
Interface
package com.dll.lib; import com.sun.jna.Library; import com.sun.jna.Native; public interface BrowseControl extends Library { BrowseControl instance = (BrowseControl)Native.loadLibrary("Vertex FXBOAPI10.5.9", BrowseControl.class); }
Class
package com.dll.main; import com.dll.lib.BrowseControl; public class MainTest { public static void main(String[] args) { BrowseControl control=BrowseControl.instance; System.out.println("Brwoser: "+control.getClass()); } } }
This code works.
What I want
a) how to access my classes and methods from a dll in the Java programming language?
b) how to refer to the {VertexFX Backoffice API} Dll, then define an Object of type type CVertexFXBOAPI class, then call the Object.SetLoginInfo and Object.Login
thanks
source share