求YLE300磁卡读卡器的小的Demo
现在要连接YLE300磁卡读卡器,并数取数据,但是不会做
private struct YLE300Result
{
public const int YLE300_OK = 0;
}
[DllImport( "YLE300_API.dll ")]
private static extern int YLE300_Open(int port);
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
int ComPort;
ComPort = 1;
int result = YLE300_Open(ComPort);
if (result == YLE300Result.YLE300_OK)
{
MessageBox.Show( "OK ");
}
else
{
MessageBox.Show(result.ToString());
}
}
老是提示连接超时,那位有这方面的经验,给小弟说说啊,谢谢!!!~~
------解决方案--------------------顶
------解决方案--------------------没做过...