資源簡介
COM接口編程
代碼片段和文件信息
//?SerialPort.cpp?:?定義控制臺應用程序的入口點。
//
#include?“stdafx.h“
#include?
#include?“SerialPort.h“
int?_tmain(int?argc?_TCHAR*?argv[])
{
CSerialPort?mySerialPort;
if?(!mySerialPort.InitPort(2))
{
std::cout?<“initPort?fail?!“?< }
else
{
std::cout?<“initPort?success?!“?< }
if?(!mySerialPort.OpenListenThread())
{
std::cout?<“OpenListenThread?fail?!“?< }
else
{
std::cout?<“OpenListenThread?success?!“?< }
int?temp;
std::cin?>>?temp;
return?0;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????582??2019-05-26?10:58??SerialPort\SerialPort\main.cpp
?????文件???????1531??2019-05-26?10:55??SerialPort\SerialPort\ReadMe.txt
?????文件???????8041??2019-05-26?10:57??SerialPort\SerialPort\SerialPort.cpp
?????文件???????3781??2019-05-26?10:58??SerialPort\SerialPort\SerialPort.h
?????文件???????8122??2019-05-26?10:58??SerialPort\SerialPort\SerialPort.vcxproj
?????文件???????1497??2019-05-26?10:58??SerialPort\SerialPort\SerialPort.vcxproj.filters
?????文件????????214??2019-05-26?10:55??SerialPort\SerialPort\stdafx.cpp
?????文件????????234??2019-05-26?10:55??SerialPort\SerialPort\stdafx.h
?????文件????????240??2019-05-26?10:55??SerialPort\SerialPort\targetver.h
?????文件???????1312??2019-05-26?10:55??SerialPort\SerialPort.sln
?????目錄??????????0??2019-05-26?10:58??SerialPort\SerialPort
?????目錄??????????0??2019-05-26?10:58??SerialPort
-----------?---------??----------?-----??----
????????????????25554????????????????????12
- 上一篇:shell實現(c語言)
- 下一篇:c++ 手工做一個STL文件
評論
共有 條評論