How to develop using WIA 1 under Vista?

大憨熊 提交于 2019-12-06 03:53:35

MS does allow you to download the WIA 2.0 library for XP here. That way your customer can use your app as is.

Also, I like WIA 2.0 more than 1.0.

I setup a small WIALib-project with VS2008 under Windows XP and copied the created Interop.WIALib.dll to my Vista machine. When I reference this file in a C# project, I can compile it. Now I have two projects, one for XP and one for Vista. With a GetVersionEx-call I determine the running Windows-version in my C++-program and call the method of the adequate Dll.

You can, in general. However, you will still need to have the WIA1 Dlls on your Vista system. The way I've done this in the past is to copy the WIA1 Dlls from XP to the XP box. I don't register the WIA1 dlls, but just reference them. By referencing them, your code now uses WIA1. In theory, you can still run and test on Vista because WIA2 should be backwards compatible with WIA1. Although you should test with XP just to be sure.

If you don't have another machine, I would recommend you take a look at VMWare so that you can install a new XP and get the Dlls that way.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!