Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

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

  • 05-08-2004 04: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
Advertisement