This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Other JSE/JEE APIs and the fly likes Twain Dll Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Twain Dll" Watch "Twain Dll" New topic
Author

Twain Dll

Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

How can i read a dll file and see the functionality of dll file... I am doing a scanning module. Can i read a dll file?. Please give some idea


-Rodricks
Peter Chase
Ranch Hand

Joined: Oct 30, 2001
Posts: 1970
You cannot interface directly to an arbitrary (Windows?) DLL in Java. If you need to use the functionality of an arbitrary DLL in Java, you will need to write some Java Native Interface (JNI) code to adapt the interface of the DLL to Java's requirements. You would typically write the JNI code in C or C++, although other languages are possible if they compile to native machine code.

See JNI Spec or Google "Java JNI" for more info.


Betty Rubble? Well, I would go with Betty... but I'd be thinking of Wilma.
Rodricks george
Ranch Hand

Joined: Sep 10, 2006
Posts: 97
Dear Sir,

Thanks you for your Kind information

-Rodricks
Timothy Wall
Greenhorn

Joined: Sep 14, 2002
Posts: 14
JACOB and JAWIN allow you to access the functions of a DLL if it exports a COM interface. JNA provides access to the DLLs functions if it exports C-callable functions. None of these options requires any JNI programming.

Presumably your DLL has some other documentation that tells you what API it provides.
[ September 07, 2007: Message edited by: Timothy Wall ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Twain Dll
 
Similar Threads
Dll Loading
How to link HTML and DLL file
what is dll?
ActiveX to Java
Signing native code?