简体   繁体   中英

C# app doesn't work properly in windows 7

I'm working with a C# sample application (taken from here : http://www.piccoder.co.uk/content/view/42/26/1/4/ ) The sample app and the source code are available in the .zip file. When I run the app in Windows XP, it is working correctly. But the same app, when I run in Windows 7, it is not working correctly. You can try run the WindowsApplication3.exe file in the /bin directory, and try to do the addition of two number there. The result will always be zero (in windows 7)

I've been using Visual Studio 2008 (in my Windows 7 machine) to modify and build the source code, and run the output app in Windows XP machine for testing purposes. I hope I can test it on Windows 7 machine directly. Can someone take a look at the source code and guide me if there were anything to be modified or added since this sample source code is quite an old code.

Thank you!

The problem most probably has nothing to do with C# or the .Net framework. It's likely a failure in the communication with the USB driver. The drivers model has changed drastically between XP and Vista/Win7 and the USB wrapper library most likely assumes the XP driver model.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM