Results 1 to 4 of 4
Like Tree2Likes
  • 1 Post By Norm
  • 1 Post By SurfMan

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

  1. #1
    imroz alam is offline Member
    Join Date
    Apr 2017
    Posts
    4
    Rep Power
    0

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

    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

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,001
    Rep Power
    33

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

    DarrylBurke likes this.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    imroz alam is offline Member
    Join Date
    Apr 2017
    Posts
    4
    Rep Power
    0

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

    It's urgent, that why i have posted on another website.
    Sorry for your inconvenience

    Can u please reply my question??

    Thanks

  4. #4
    SurfMan's Avatar
    SurfMan is offline Godlike
    Join Date
    Nov 2012
    Location
    The Netherlands
    Posts
    1,989
    Rep Power
    8

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

    It's always urgent. And it would be nice if you told us upfront, so we can check if somebody else already gave the solution. In that case we don't waste our time on an already answered question.
    DarrylBurke likes this.
    "It's not fixed until you stop calling the problem weird and you understand what was wrong." - gimbal2 2013

Similar Threads

  1. specify native library in java command line
    By major in forum Advanced Java
    Replies: 6
    Last Post: 06-15-2011, 10:21 AM
  2. NetBeans - Path to Native Library?
    By RichWade in forum NetBeans
    Replies: 8
    Last Post: 11-22-2010, 07:12 PM
  3. I want to put the native library in library path in mac os x
    By Hussain Ali in forum Advanced Java
    Replies: 2
    Last Post: 02-24-2010, 07:55 AM
  4. Connection to DLL using Java Native Access
    By cowboy in forum New To Java
    Replies: 1
    Last Post: 01-23-2010, 08:43 PM
  5. Loading a library (for native methods)
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-23-2007, 07:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •