WIA in C# 2008? No working examples on the net ....

Trips

Well-known member
Joined
Aug 7, 2010
Messages
2,788
Im in a bit of a delima ... It turns out WIA does not work with C# 2008. This is extremely bad news ....

Every example on the net must be for C# 2005 and lower, reason is due to the instructions etc ...

1. Install Platform SDK (done)
2. Install WIA SDK (done)
3. Register wiaaut.dll (done)
4. Reference said dll in c# project (done)
5. Try code on the following pages:

http://www.eggheadcafe.com/community/aspnet/10/10006654/previous-community-conver.aspx
http://dotnet.org.za/colin/archive/2005/03/15/15483.aspx
http://dotnet.org.za/colin/archive/2005/03/15/15478.aspx

As soon as the following code executes:

Device d = this.scanDlg.ShowSelectDevice(WiaDeviceType.ScannerDeviceType, true, false);

You get one of those wonderful, unhelpful, POS error messages:

Exception from HRESULT: 0x80210015

Why did Microsoft drop support of WIA for VS2008? What is its replacement?




View the full article
 
Back
Top