为智能设备应用程序编写.dll文件以访问设备。 [英] Writing a .dll file for smart device application to access a device.

查看:66
本文介绍了为智能设备应用程序编写.dll文件以访问设备。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Hii ...我想在c#中为智能设备应用程序编写.dll文件,以便在WIN CE5.0中访问不同的组件(如智能卡读卡器,rfid阅读器,打印机,生物识别读卡器等)设备。应用程序是在设备上运行。要访问设备,
将在serialport上写入一些命令。 " COM"是固定的。请建议如何进行?我应该在.dll内部创建serialport对象还是留给用户实例化serialport。请回答... thanksss

Hii... I want to write a .dll file in c# for smart device application to access different components(like smart card reader, rfid reader, printer, biometric reader etc) in the WIN CE5.0 based device. Application is to run on the device. To access the device, some commands are to be written on serialport. "COM" is fixed. Please suggest how to proceed? Should i create the serialport object internally in the .dll or leave it to the user to instantiate the serialport. please answer... thanksss

推荐答案

我个人可能会在内部打开COM,但允许通过配置文件配置该端口。但这听起来完全不重要。

Personally I would probably open COM internally but allow for that port to be configurable via configuration file. But that sounds like completely unimportant detail.

 


这篇关于为智能设备应用程序编写.dll文件以访问设备。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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