资源简介
vc6.0串口通信,采用mscomm控件可以用来进行简单的串口通信调试
代码片段和文件信息
// Machine generated IDispatch wrapper class(es) created by Microsoft Visual C++
// NOTE: Do not modify the contents of this file. If this class is regenerated by
// Microsoft Visual C++ your modifications will be overwritten.
#include “stdafx.h“
#include “mscomm.h“
/////////////////////////////////////////////////////////////////////////////
// CMSComm
IMPLEMENT_DYNCREATE(CMSComm CWnd)
/////////////////////////////////////////////////////////////////////////////
// CMSComm properties
/////////////////////////////////////////////////////////////////////////////
// CMSComm operations
void CMSComm::SetCDHolding(BOOL bNewValue)
{
static BYTE parms[] =
VTS_BOOL;
InvokeHelper(0x1 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
bNewValue);
}
BOOL CMSComm::GetCDHolding()
{
BOOL result;
InvokeHelper(0x1 DISPATCH_PROPERTYGET VT_BOOL (void*)&result NULL);
return result;
}
void CMSComm::SetCommID(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0x3 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
nNewValue);
}
long CMSComm::GetCommID()
{
long result;
InvokeHelper(0x3 DISPATCH_PROPERTYGET VT_I4 (void*)&result NULL);
return result;
}
void CMSComm::SetCommPort(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0x4 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
nNewValue);
}
short CMSComm::GetCommPort()
{
short result;
InvokeHelper(0x4 DISPATCH_PROPERTYGET VT_I2 (void*)&result NULL);
return result;
}
void CMSComm::SetCTSHolding(BOOL bNewValue)
{
static BYTE parms[] =
VTS_BOOL;
InvokeHelper(0x5 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
bNewValue);
}
BOOL CMSComm::GetCTSHolding()
{
BOOL result;
InvokeHelper(0x5 DISPATCH_PROPERTYGET VT_BOOL (void*)&result NULL);
return result;
}
void CMSComm::SetDSRHolding(BOOL bNewValue)
{
static BYTE parms[] =
VTS_BOOL;
InvokeHelper(0x7 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
bNewValue);
}
BOOL CMSComm::GetDSRHolding()
{
BOOL result;
InvokeHelper(0x7 DISPATCH_PROPERTYGET VT_BOOL (void*)&result NULL);
return result;
}
void CMSComm::SetDTREnable(BOOL bNewValue)
{
static BYTE parms[] =
VTS_BOOL;
InvokeHelper(0x9 DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
bNewValue);
}
BOOL CMSComm::GetDTREnable()
{
BOOL result;
InvokeHelper(0x9 DISPATCH_PROPERTYGET VT_BOOL (void*)&result NULL);
return result;
}
void CMSComm::SetHandshaking(long nNewValue)
{
static BYTE parms[] =
VTS_I4;
InvokeHelper(0xa DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
nNewValue);
}
long CMSComm::GetHandshaking()
{
long result;
InvokeHelper(0xa DISPATCH_PROPERTYGET VT_I4 (void*)&result NULL);
return result;
}
void CMSComm::SetInBufferSize(short nNewValue)
{
static BYTE parms[] =
VTS_I2;
InvokeHelper(0xb DISPATCH_PROPERTYPUT VT_EMPTY NULL parms
nNewValue);
}
short CMSComm::Ge
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 15116 2012-03-22 18:31 vcmscomm\Debug\BuildLog.htm
文件 68748 2012-03-22 18:31 vcmscomm\Debug\mscomm.obj
文件 67 2012-03-22 18:31 vcmscomm\Debug\mt.dep
文件 19918 2012-03-22 18:31 vcmscomm\Debug\SetupDlg.obj
文件 466155 2012-03-22 18:31 vcmscomm\Debug\StdAfx.obj
文件 46592 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.exe
文件 920 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.exe.em
文件 984 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.exe.em
文件 861 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.exe.intermediate.manifest
文件 240032 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.ilk
文件 25999 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.obj
文件 25296896 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.pch
文件 3255296 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.pdb
文件 3296 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSComm.res
文件 62818 2012-03-22 18:31 vcmscomm\Debug\TTYReceiveMSCommDlg.obj
文件 205824 2006-01-09 16:37 vcmscomm\Debug\vc60.idb
文件 364544 2006-01-09 16:37 vcmscomm\Debug\vc60.pdb
文件 928768 2012-03-22 18:31 vcmscomm\Debug\vc90.idb
文件 2002944 2012-03-22 18:31 vcmscomm\Debug\vc90.pdb
文件 8569 2005-05-14 14:50 vcmscomm\mscomm.cpp
文件 3221 2005-05-14 14:50 vcmscomm\mscomm.h
文件 3759 2005-05-14 14:21 vcmscomm\ReadMe.txt
文件 1078 2005-05-14 14:21 vcmscomm\res\TTYReceiveMSComm.ico
文件 408 2005-05-14 14:21 vcmscomm\res\TTYReceiveMSComm.rc2
文件 1015 2005-05-14 18:19 vcmscomm\Resource.h
文件 1117 2005-05-16 21:08 vcmscomm\SetupDlg.cpp
文件 1234 2005-05-14 16:18 vcmscomm\SetupDlg.h
文件 218 2005-05-14 14:21 vcmscomm\StdAfx.cpp
文件 1054 2005-05-14 14:21 vcmscomm\StdAfx.h
文件 23300 2012-03-22 18:37 vcmscomm\TTYReceiveMSComm.aps
............此处省略21个文件信息
评论
共有 条评论