CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Using a DLL

  1. #1
    Join Date
    Jan 2010
    Posts
    1

    Using a DLL

    Hello,

    I am currently trying to create a server application, for a client that is already built. The client uses an external dll written in C++ for network communication. Apperantly, that networking protocoal is different than Java's API Socket package, therefore I have to use that dll (which i've got) for networking.

    "Googling" it, i've found out that i have to use JNI or JNA to implement that dll in my project. I am not quite sure how to do that. Can anyone help?

    Happy new year

  2. #2
    dlorde is offline Elite Member Power Poster
    Join Date
    Aug 1999
    Location
    UK
    Posts
    10,163

    Re: Using a DLL

    You need to create an JNI native header and implmentation to map the C++ DLL methods to Java methods. Check out the JNI Tutorial.

    If I had eight hours to chop down a tree, I would spend 6 hours sharpening an axe...
    Anon.
    Please use [CODE]...your code here...[/CODE] tags when posting code. If you get an error, please post the full error message and stack trace, if present.

  3. #3
    Join Date
    Feb 2008
    Posts
    966

    Re: Using a DLL

    Quote Originally Posted by arbaba View Post
    Thanks for the information.
    <censored links>
    This isn't the place to advertise your web sites and try to get some link backs.

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured