Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Dec 2011
    Location
    abuja
    Posts
    18
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Including dll and c++ header files in a single java program

    Hi guys, i want to ask how do we call both a .dll and a header file in one java program. In this program i must use the dll file and include the header file if written in c++. But i am not so good in using c++, i want to use java, so how to i achieve this? I know about jna which is good when calling dll files in java and jni, used when calling c/c++ files in java. But in this case, i need to use the dll file in a java program and the c++ header file must be included in order for the program to perform very well.

  • #2
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You reference link https://jna.java.net/

  • #3
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by greeninho View Post
    Hi guys, i want to ask how do we call both a .dll and a header file in one java program. In this program i must use the dll file and include the header file if written in c++. But i am not so good in using c++, i want to use java, so how to i achieve this? I know about jna which is good when calling dll files in java and jni, used when calling c/c++ files in java. But in this case, i need to use the dll file in a java program and the c++ header file must be included in order for the program to perform very well.
    You reference https://jna.java.net/

  • #4
    New to the CF scene
    Join Date
    Oct 2013
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by greeninho View Post
    Hi guys, i want to ask how do we call both a .dll and a header file in one java program. In this program i must use the dll file and include the header file if written in c++. But i am not so good in using c++, i want to use java, so how to i achieve this? I know about jna which is good when calling dll files in java and jni, used when calling c/c++ files in java. But in this case, i need to use the dll file in a java program and the c++ header file must be included in order for the program to perform very well.
    Hi greeninho! You can reference https://jna.java.net/


  •  

    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
    •