资源简介
奉上完整工程要的拿走,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基于角色的访问控制中英文论文
相关资源
- 易语言OTG串口通信
- delphi 串口通讯
- STM32蓝牙和串口程序
- LCD显示温度+串口接收温度.rar
- WPF USB 网络 串口 通信软件
- DELPHI与西门子200PLC的串口通信实例
- 基于MFC扩展CListCtrl子项显示图片并叠
- Verilog FPGA UART串口控制器
- 黑白棋(带简单AI)
- USB转串口驱动,FT232R驱动程序,最新
- MFC程序-碰撞的小球
-
Cme
taFileDC的使用示例 - ado数据库MFC图书管理系统vs2010
- PC -- 单片机的串口数据传输系统设计
- STM32F103 串口程序(完整版)
- mfc单文档窗体画线与写字
- stm32 ds18b20 温度传感器 测试通过
- PC 串口调试软件
- [免费]MFC制作目录树
- 51单片机读取温度数据存储到SD卡中并
- 单片机与PC机串口通讯仿真
- 串口调试助手V5.0
- MFC读三维模型obj文件
- 画图程序MFC/VC/VC CRectTracker 串行化
- MFC网络编程实例
- 双串口调试助手 V4.0 _ 可同时调试两个
- 读取串口数据并画实时曲线的VC 程序
- c 程序判断离散数学中命题公式
- MFC控件动态拖动
- MFC中OpenGL面和体的绘制以及动画效果
评论
共有 条评论