Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Wrapping C++ code in a DLL for use in Java

Options
  • 05-08-2004 4:43pm
    #1
    Closed Accounts Posts: 196 ✭✭


    Hi, i've tried google-ing this to death and i've found so many sites which teach how to wrap c++ code into DLLs for use in VB, ActiveX DLLs, MFC DLLs etc

    But i haven't found one tutorial for java.

    What i've done is, i've mirrored the tutorial for VB and tried to use it for Java using JNI n' all, i think my errors have come from packaging my C++ code and it's not the JNI side.

    I've been using VC++ 6.0 Standard Edition, all i want to do is write a little C++ which which simply takes in two ints from java, adds them in the C++ DLL and pass back the summation of the two to Java.

    Does anyone know any good tutorials or sample code for this boy?


Comments

Advertisement