如何在C#中处理设备 [英] how to handle a device in c#

查看:56
本文介绍了如何在C#中处理设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试制作一个窗口窗体,该窗体具有一个问题和4个选项,以及一个具有4个按钮的硬件设备.

就像

2 + 2是什么?

(a)2
(b)22
(c)4
(d)0

并给出上述问题的答案,用户将使用具有4个按钮的硬件设备

用户将根据硬件设备的4个按钮选择选项.

我想通过c#处理该设备,哪种设备会更好.

i am trying to make a window form which having a question and 4 options and a h/w device having 4 buttons.

like

what is 2+2 ?

(a) 2
(b) 22
(c) 4
(d) 0

and to give the answer of above question the user will have a h/w device having 4 buttons

and user will select the option on the basis of h/w devices 4 buttons.

i wants to handle that device through c#.and which device will be better .

推荐答案

您的问题由于其非常模糊的性质而无法回答.

您做什么以及如何做完全取决于设备,设备与系统的连接方式,如何通过接口将自身公开给代码.

在您提供至少部分此类信息之前,没有任何人可以帮助您.
Your question is impossibel to answer due to its extremely vague nature.

What you do and how you do it depends entirely on what the device is, how it''s connected to the system, how it exposes itself to code via what interfaces.

Until you provide a least SOME of this information, there isn''t anything anyone can do to help you.


这篇关于如何在C#中处理设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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