wood burning stoves 2.0*
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
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Twain Dll" Watch "Twain Dll" New topic

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

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

Timothy Wall

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 ]
It is sorta covered in the JavaRanch Style Guide.
subject: Twain Dll
Similar Threads
Dll Loading
ActiveX to Java
Signing native code?
what is dll?
How to link HTML and DLL file