Skip to Main Content

How to access classes and methods of vb.net native dll file from jna library

imroz alamApr 6 2017 — edited Apr 6 2017

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

Post Details
Locked due to inactivity on May 4 2017
Added on Apr 6 2017
0 comments
707 views