VS2010

warning: Creating default object from empty value in /home/www/virtual/phaisarn.com/sun/htdocs/modules/taxonomy/taxonomy.pages.inc on line 33.

Using WIA for scanning

I was playing around this morning with scanning images and put together an adapter class that uses the Windows automation library (WIAAUT.DLL) which is part of the WIA automation SDK -- WIA means Windows Image Acquisition.

Here are the imports I used for the code file:

 

Integrate image scanning within a C# application

Now, include the WIA library (C:\Windows\System32\wiaaut.dll) within your proje

VS 2010 compiler error: Interop type XXX cannot be embedded. Use the applicable interface instead.

In most cases (such as error for the usage of UPnPNATClass as noted in one of the comments) this error is the result of code which tries to instantiate a COM object e.g. here piece of code starting up Excel:

Excel.ApplicationClass xlapp = new Excel.ApplicationClass();

Here it is enough to say that Excel.ApplicationClass derives from Excel.Application interface and one can even instantiate Excel using Excel.Application interface. Rewriting this code as below produces exact same results:

Excel.Application xlapp = new Excel.Application();

Unable to start Debugging.The SilverLight Developer Runtime Not Installed. Please Install a matching version

ปัญหา คือ สร้างโปรเจ็กส์ Silverlight ขึ้นมา แต่ไม่สามารถรันได้ โดยเกิด Error ดังนี้
Unable to start Debugging.The SilverLight Developer Runtime Not Installed. Please Install a matching version
สาเหตุ คือ Silverlight version มี 2 version คือ เวอร์ชั่นสำหรับใช้งาน และเวอร์ชั่นสำหรับ developer

Syndicate content