Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

DLL 's managing  RSS feed

 
Luis Canizares
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody

Does somebody know how can I use functions from a DLL? and how can I manage that file

I have to test a DLL written in C

Please let me know
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

The only way to call functions in a random DLL from Java is via native code -- i.e., you write a special DLL in C/C++ which Java can call; your code in this special DLL can then call the random DLL.

I don't know what you mean by "managing the file"; can you explain?
 
Luis Canizares
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Luis Canizares:
I mean just use that file
It encrypts characters but do you know exactly how can I use that native code?
Thanxs in anticipation
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24217
38
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to use JNI, the "Java Native Interface", which you can learn about here.
 
Luis Canizares
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanxs a lot my friedn ut was very helpful for me!!!

Greetings and good luck !!!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!