在Windows 7中将应用程序连接到USB端口 [英] connecting a application to USB port in windows 7

查看:49
本文介绍了在Windows 7中将应用程序连接到USB端口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好.
几年前,我编写了一个应用程序"软件,该软件连接到2个USB端口,并从一个USB端口接收数字视频(峰值捕获的输出),并从另一个端口接收串行数据.
我使用C#语言在Visual Studio 2008中编写此应用程序.该软件可以在Windows XP中正常运行,但是现在我想在Windows 7下运行它,出现此问题:
当我在Windows 7中安装的VS中对其进行仿真时,可以正常工作,但是当我从我的电脑"中的exe文件运行该文件时,一切都完成了,并且没有运行.
请帮助我解决问题.
谢谢.

Hello .
I written a "application" software in years ago that connect to 2 USB port and receive digital video(output of pinnacle capture) from one and serial data from other.
I write this application in Visual studio 2008 with C# language. the software worked correctly in windows XP but now that I want run it under windows 7, have this problem:
when I simulate it in VS that installed in windows 7, work correctly but when I run it from exe file in "my computer" anything done and don''t run.
Please help me to resolve the problem.
Thanks.

推荐答案

您是否尝试过以管理员身份运行应用程序? 不运行"是什么意思?它炸了吗?它是Windows 7的64位版本吗?您使用的是32位组件吗?您的代码是否捕获了阻止您获取错误消息的所有错误块?
Have you tried running your app as administrator ? What does ''don''t run'' mean ? Does it blow up ? Is it a 64 bit version of Windows 7 ? Are you using a 32 bit component ? Does your code have catch all error blocks that are stopping you from getting an error message ?


我尝试以管理员或兼容模式运行它,但是当我单击它时,Windows却不执行任何操作.是的,Windows是64位(对不起,我忘记说了).我使用一个组件来接收和保存数字视频.当我在VS中运行应用程序时,它完全可以正常运行.
听说我必须使用Microsoft网站上的文件,才能将应用程序连接到Windows 7中的usb端口,这是真的吗?(听说Windows 7与USB具有安全通信,因此需要此文件)目的)
谢谢.
I tried running it as administrator or compatibility mode but When I click on it, Windows does not do anything. yes the windows is 64 bit(sorry, I forgotten to say it). I use a component to receive and save digital video. when I run application in VS, it run completely without errors.
I heard that I must use a file that is in Microsoft''s website, for connecting application to usb port in windows 7, is this true??(I heard that windows 7 have secure communication with USB and this file is needed for this purpose)
Thanks.


如果您的代码是使用.DLL或.OCX组件到达摄像机,则可能是您的代码被编译为"Any CPU",这将使在64位计算机上运行时,将您的代码转换为64位应用程序.您可能使用的组件可能只有32位,在这种情况下,您的应用程序将无法运行.同一过程中不能同时包含32位和64位代码.您必须将应用重新编译为"x86"才能解决此问题.在项目属性中,选择目标CPU".
If you''re code is using a .DLL or .OCX component to get at the camera, it could be that your code was compiled "Any CPU", which will turn your code into a 64-bit app when running on a 64-bit machine. The component you may be using is probably 32-bit only, in which case, your app won''t work. You cannot have 32- and 64-bit code in the same process. You''ll have to recompile your app as "x86" to fix this. Look in your Project Properties for the "Target CPU" selection.


这篇关于在Windows 7中将应用程序连接到USB端口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆