Forum Stats

  • 3,826,663 Users
  • 2,260,687 Discussions
  • 7,897,044 Comments

Discussions

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

imroz alam
imroz alam Member Posts: 1
edited Apr 6, 2017 6:53AM in New To Java

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

This discussion has been closed.