资源简介
奉上完整工程要的拿走,CSerial类VS2013源码。直接编译即可。奉上完整工程要的拿走,CSerial类VS2013源码。直接编译即可。
// Pros:
// -----
// - Easy to use
// - Fully ANSI and Unicode aware
// - Integrates easily in GUI applications and is intuitive to
// use for GUI application programmers
// Pros:
// -----
// - Easy to use
// - Fully ANSI and Unicode aware
// - Integrates easily in GUI applications and is intuitive to
// use for GUI application programmers
代码片段和文件信息
// Serial.cpp - Implementation of the CSerial class
//
// Copyright (C) 1999-2003 Ramon de Klein (Ramon.de.Klein@ict.nl)
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License or (at your option) any later version.
//
// This library is distributed in the hope that it will be useful
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not write to the Free Software
// Foundation Inc. 59 Temple Place Suite 330 Boston MA 02111-1307 USA
//////////////////////////////////////////////////////////////////////
// Include the standard header files
#define STRICT
#include
#include
#include
//////////////////////////////////////////////////////////////////////
// Include module headerfile
#include “Serial.h“
//#define SERIAL_NO_OVERLAPPED
//////////////////////////////////////////////////////////////////////
// Disable warning C4127: conditional expression is constant which
// is generated when using the _RPTF and _ASSERTE macros.
#pragma warning(disable: 4127)
//////////////////////////////////////////////////////////////////////
// Enable debug memory manager
#ifdef _DEBUG
#ifdef THIS_FILE
#undef THIS_FILE
#endif
static const char THIS_FILE[] = __FILE__;
#define new DEBUG_NEW
#endif
//////////////////////////////////////////////////////////////////////
// Helper methods
inline void CSerial::CheckRequirements (LPOVERLAPPED lpOverlapped DWORD dwTimeout) const
{
#ifdef SERIAL_NO_OVERLAPPED
// Check if an overlapped structure has been specified
if (lpOverlapped || (dwTimeout != INFINITE))
{
// Quit application
::MessageBox(0_T(“Overlapped I/O and time-outs are not supported when overlapped I/O is disabled.“)_T(“Serial library“) MB_IConerror | MB_TASKMODAL);
::DebugBreak();
::ExitProcess(0xFFFFFFF);
}
#endif
#ifdef SERIAL_NO_CANCELIO
// Check if 0 or INFINITE time-out has been specified because
// the communication I/O cannot be cancelled.
if ((dwTimeout != 0) && (dwTimeout != INFINITE))
{
// Quit application
::MessageBox(0_T(“Timeouts are not supported when SERIAL_NO_CANCELIO is defined“)_T(“Serial library“) MB_IConerror | MB_TASKMODAL);
::DebugBreak();
::ExitProcess(0xFFFFFFF);
}
#endif // SERIAL_NO_CANCELIO
// Avoid warnings
(void) dwTimeout;
(void) lpOverlapped;
}
inline BOOL CSerial::CancelCommIo (void)
{
#ifdef SERIAL_NO_CANCELIO
// CancelIo shouldn‘t have been called at this point
::DebugBreak();
return FALSE;
#else
// Cancel the I/O requ
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2019-12-04 17:39 iProTool\
目录 0 2019-12-04 17:40 iProTool\iPro\
目录 0 2019-12-04 17:39 iProTool\iPro\CSerial\
文件 35688 2008-02-13 22:01 iProTool\iPro\CSerial\Serial.cpp
文件 13352 2003-11-02 15:50 iProTool\iPro\CSerial\Serial.h
文件 7312 2008-12-05 13:33 iProTool\iPro\CSerial\SerialEx.cpp
文件 4042 2003-11-07 16:09 iProTool\iPro\CSerial\SerialEx.h
文件 4098 2003-11-02 15:50 iProTool\iPro\CSerial\SerialMFC.h
文件 3562 2003-11-02 10:18 iProTool\iPro\CSerial\SerialWnd.cpp
文件 3043 2003-11-02 15:50 iProTool\iPro\CSerial\SerialWnd.h
目录 0 2019-12-04 17:40 iProTool\iPro\iPro\
文件 109176 2019-12-01 17:28 iProTool\iPro\iPro\iPro.aps
文件 2348 2019-12-01 14:22 iProTool\iPro\iPro\iPro.cpp
文件 431 2019-12-01 14:22 iProTool\iPro\iPro\iPro.h
文件 12906 2019-12-01 17:28 iProTool\iPro\iPro\iPro.rc
文件 6867 2019-12-01 14:39 iProTool\iPro\iPro\iPro.vcxproj
文件 2862 2019-12-01 14:24 iProTool\iPro\iPro\iPro.vcxproj.filters
文件 12827 2019-12-01 17:30 iProTool\iPro\iPro\iProDlg.cpp
文件 2029 2019-12-01 17:23 iProTool\iPro\iPro\iProDlg.h
文件 3804 2019-12-01 14:22 iProTool\iPro\iPro\ReadMe.txt
目录 0 2019-12-04 17:39 iProTool\iPro\iPro\res\
文件 67777 2013-07-22 01:18 iProTool\iPro\iPro\res\iPro.ico
文件 664 2019-12-01 14:22 iProTool\iPro\iPro\res\iPro.rc2
文件 2146 2019-12-01 16:38 iProTool\iPro\iPro\resource.h
文件 137 2019-12-01 14:22 iProTool\iPro\iPro\stdafx.cpp
文件 1578 2019-12-01 14:22 iProTool\iPro\iPro\stdafx.h
文件 234 2019-12-01 14:22 iProTool\iPro\iPro\targetver.h
文件 958 2019-12-01 14:22 iProTool\iPro\iPro.sln
文件 22528 2019-12-01 17:32 iProTool\iPro\iPro.v12.suo
目录 0 2019-12-04 17:39 iProTool\iPro\Release\
文件 105472 2019-12-01 17:28 iProTool\iPro\Release\iPro.exe
............此处省略13个文件信息
- 上一篇:《数字图像处理》第三版课后标准答案
- 下一篇:RBAC基于角色的访问控制中英文论文
相关资源
- STM32 CUBE空闲中断+DMA双串口透传
- 串口发送蓝牙AT命令
- STM32F103 串口DMA+空闲中断接收
- usb转232串口驱动,08年老版本。带修复
- gps,电子罗盘串口通讯
- 能判断奇偶校验的串口调试助手
- stm32 cubemx hal库 串口收发 中断接收 项
- 串口通信.zip
- AutoCAD绘图交换文件DXF实体对象说明
- zw_Qt通过串口读单片机温度数据画动态
- zw_串口坐标刷新v1.0.zip
- QT5.7串口助手VS2015下开发
- CPort控件包括中文说明书及安装方法
- RT-Thread 串口IAP升级
- 接收串口数据并将数据保存
- LPB120串口转WiFi的实现
- 51单片机与PC串口通信的protues仿真的工
- Qt5串口通信
- 新版dnw支持win10驱动及软件
- 虚拟串口vspd8.0.412含注册码.rar
- MiniBalance上位机所有资料
- SkinSharp 完整破解版 带51款皮肤
- 虚拟串口VSPD6.0内含注册码
- stm32f103双串口收发.zip
- 使用winring监控cpu温度
- 虚拟串口VSPD破解版 亲测win10 64可用
- STM32串口软件
- serialplot win64
- win10 USB转串口驱动 PL2303
- gps模块串口全
评论
共有 条评论