|
-
January 1st, 2010, 06:32 AM
#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
-
January 1st, 2010, 09:21 AM
#2
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.
-
January 6th, 2010, 09:19 AM
#3
Re: Using a DLL
 Originally Posted by arbaba
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|