I got it working - thanks for the Console.Write tip!
First, I tried what you suggested. On my other computer I got the
exception "Cannot create ActiveX component.", even when the code was
compiled on that computer. So there was no problem with the code -
there was something wrong with that computer. So I read more about the
WIA library (which contains the WIA.Vector and WIA.CommonDialog
objects) and found this:
"You will need WIAAut.dll to use the WIA Automation Layer. To locate
the file that contains the DLL and installation instructions, follow
these steps."
From
http://msdn.microsoft.com/library/de...pagewiaaut.asp
So I searched the troubled computer for WIAAut.dll... nothing! So once
I downloaded and registered it, everything worked fine.