It's not a secret anymore!
The moose likes Java in General and the fly likes using API functions in DLL files in windows Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "using API functions in DLL files in windows" Watch "using API functions in DLL files in windows" New topic
Author

using API functions in DLL files in windows

ali honarmand
Ranch Hand

Joined: Oct 12, 2009
Posts: 32

hi, everyone. I need help please in solving this problem. I need to use API functions in DLL files to complete a class test. I heard
JNI can help but as I'm a beginner I have not used JNI yet. So in two parts I need your help please, first using API functions, second using JNI.

thanks,
ali.


A. Honarmand
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 35258
    
    7
You can start learning about JNI at http://java.sun.com/developer/onlineTraining/Programming/JDCBook/jni.html and http://www-stat.stanford.edu/~naras/java/course/lec5/lec5.html


Android appsImageJ pluginsJava web charts
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19216

It's not one or the other. You cannot call (native) API functions from a DLL without JNI*. You may want to check out this.

* Technically you can with JNA, but that uses JNI itself under the covers.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: using API functions in DLL files in windows
 
Similar Threads
DLL FIle
Using a servlet to query an outlook calendar from the web
JNI in solaris (urgent)
Calling VB dll from java (using JNI)
Calling a generic DLL