I was curious to know if anybody has ever found an elegant way to call functions in a Windows COM DLL from Java.
I'm needing my program to acquire images from WIA (Windows Image Acquisition) compatible scanners and cameras. (Our scanners are not TWAIN compatible.) The WIA Automation COM object is located in C:\Windows\System32\wiaaut.dll and provides functions for discovering the connected WIA devices and acquiring images.
I've searched and only managed to come up with some commercial packages that add this functionality to Java, but I can't spend money on this task. :) Anyone have a better way to do it? (If I can avoid having to write a wrapper program in C/C++, I'd like that.)
4 replies to this topic
#1
Posted 03 June 2011 - 08:51 AM
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
|
|
|
#3
Posted 03 June 2011 - 09:11 AM
Hmm, when I try to download com4j, I get the following message:
The file /web/projects/com4j/servlets/ProjectDocumentList appears to be missing.
The file /web/projects/com4j/servlets/ProjectDocumentList appears to be missing.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
#4
Posted 03 June 2011 - 09:12 AM
Good point...
Edit: Subversion for source seems to work tho, maybe you can compile it yourself :p
Edit2: wonder what this is Com4j: Downloads — Java.net
Edit3: the above link works (downloaded the smallest rar, as it's the newest I think) It also contains samples.
Edit: Subversion for source seems to work tho, maybe you can compile it yourself :p
Edit2: wonder what this is Com4j: Downloads — Java.net
Edit3: the above link works (downloaded the smallest rar, as it's the newest I think) It also contains samples.
#5
Posted 03 June 2011 - 09:18 AM
Excellent. Thank you. I'll give it a try.
Hofstadter's Law: It always takes longer than you expect, even when you take into account Hofstadter's Law.
– Douglas Hofstadter, Gödel, Escher, Bach: An Eternal Golden Braid
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account


Back to top









