資源簡介
下位機采集的溫度信號,通過串口傳到上位機,然后將溫度數據進行波形曲線顯示,超實用,希望能幫助你。

代碼片段和文件信息
//?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
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2010-01-13?12:55??SCommtest\
?????目錄???????????0??2010-01-13?12:55??SCommtest\Debug\
?????文件???????48507??2009-09-26?14:58??SCommtest\Debug\mscomm.obj
?????文件??????127075??2010-01-13?11:52??SCommtest\Debug\SCommtest.exe
?????文件??????317220??2010-01-13?11:52??SCommtest\Debug\SCommtest.ilk
?????文件???????15558??2009-10-13?11:16??SCommtest\Debug\SCommtest.obj
?????文件?????5728452??2009-09-26?14:52??SCommtest\Debug\SCommtest.pch
?????文件??????476160??2010-01-13?11:52??SCommtest\Debug\SCommtest.pdb
?????文件????????3652??2009-10-13?11:22??SCommtest\Debug\SCommtest.res
?????文件???????71170??2010-01-13?11:51??SCommtest\Debug\SCommtestDlg.obj
?????文件??????105593??2009-09-26?14:52??SCommtest\Debug\StdAfx.obj
?????文件??????246784??2010-01-13?11:52??SCommtest\Debug\vc60.idb
?????文件??????372736??2010-01-13?11:51??SCommtest\Debug\vc60.pdb
?????文件????????8569??2009-09-26?14:53??SCommtest\mscomm.cpp
?????文件????????3221??2009-10-04?03:14??SCommtest\mscomm.h
?????文件????????3633??2009-09-26?14:51??SCommtest\ReadMe.txt
?????目錄???????????0??2010-01-13?12:55??SCommtest\res\
?????文件????????1515??2009-10-13?11:16??SCommtest\resource.h
?????文件????????1078??2009-09-26?14:51??SCommtest\res\SCommtest.ico
?????文件?????????401??2009-09-26?14:51??SCommtest\res\SCommtest.rc2
?????文件???????22952??2010-05-15?11:54??SCommtest\SCommtest.aps
?????文件????????2529??2010-05-15?12:45??SCommtest\SCommtest.clw
?????文件????????2105??2009-09-26?14:51??SCommtest\SCommtest.cpp
?????文件????????4644??2009-09-26?16:01??SCommtest\SCommtest.dsp
?????文件?????????587??2009-09-26?16:01??SCommtest\SCommtest.dsw
?????文件????????1357??2009-09-26?14:51??SCommtest\SCommtest.h
?????文件??????287744??2010-05-15?12:45??SCommtest\SCommtest.ncb
?????文件???????50688??2010-05-15?12:45??SCommtest\SCommtest.opt
?????文件?????????719??2010-01-13?11:52??SCommtest\SCommtest.plg
?????文件????????7866??2009-10-13?11:20??SCommtest\SCommtest.rc
?????文件???????13882??2009-10-16?11:04??SCommtest\SCommtestDlg.cpp
............此處省略3個文件信息
- 上一篇:基于mini_stm32的ad9854程序可用
- 下一篇:電池電量檢測及充放電管理
評論
共有 條評論