This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes JNI - windows  DLL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "JNI - windows  DLL" Watch "JNI - windows  DLL" New topic
Author

JNI - windows DLL

Paul Richards
Greenhorn

Joined: Jul 25, 2001
Posts: 19
Hi folks
I am required to call a windows DLL called "C:/WINNT/system32/pcpv232.dll". This dll has several functions such as GETAddress which require parameters and obvuiously return data that my Java Program will then use.
Is this possible? I have read that using JNI may help.
Could anyone point me in the right direction?
cheers in advance
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
JNI is intended to allow you to interface your java code with code written in other languages. It allow you to call that native code. Most windows stuff is written in C++ or in Visual Basic.
An overview of JNI: http://java.sun.com/docs/books/tutorial/native1.1/concepts/index.html
Some FAQ: http://java.sun.com/products/jdk/faq/jnifaq.html


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Have you checked out Aspose?
 
subject: JNI - windows DLL
 
jQuery in Action, 3rd edition