Hi,
I am using jna library, but how to access classes and their method from my existing dll.
My dll is vb.net native dll file.
You can check this link for more about dll VertexFX Backoffice API (ActiveX DLL) Help Index - Help Desk
My source code is following:-
a) BrowseControl.java
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);
}
b) MainTest.java
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);
}
}
This code is working, but how to access classes and method.
How to reference the {VertexFX Backoffice API} Dll, then define Object of type CVertexFXBOAPI class, after that call the following two methods:
Object.SetLoginInfo
Object.Login
Thanks