• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Twain Dll

 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1970
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Rodricks george
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Sir,

Thanks you for your Kind information

-Rodricks
 
Timothy Wall
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic