⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 newrfid.cpp

📁 读RF卡的源代码
💻 CPP
字号:
// NEWRFID.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include "comm.h"

CRS232 m_rs;
struct TagInfoStruct
{
	int iComPort;
	int m_iReaderID;     //Reader编号
	int m_iTagID;        //电子标签编号
	char m_dtPassDate[30]; //Tag被扫描到的时间
	bool m_bIsValiTag;
};
struct TagInfoStruct *Tag;
int main(int argc, char* argv[])
{
	BOOL result;
	result=m_rs.OpenConnect("COM1",2400,8,ONESTOPBIT,NOPARITY);
	if(result)
	   printf("OpenConnected Error!\n");
	m_rs.SetCallBackFunc(MyRS232CallBackFunc,&Tag);
	while(1)
	{
		
	}
	return 0;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -