91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 109KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-05-13
  • 語言: C/C++
  • 標簽: VC60??串口??流控制??

資源簡介

用VC60開發的一個帶流控制的串口通訊程序。

資源截圖

代碼片段和文件信息

//?ConfTransfer.cpp?:?implementation?file?Version?2.0
//

#include?“stdafx.h“
#include?“updown.h“
#include?“ConfTransfer.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#undef?THIS_FILE
static?char?THIS_FILE[]?=?__FILE__;
#endif

static?char?Com[2][2]???????=?{“1““2“};
static?char?Baudrate[12][7]?=?{“1““2““3““4““5““6““7““8““9““10““11““12“};
//?110?150?300?600?1200240048009600192003840057600115200
static?char?Parity[5][6]????=?{“1“?“2“?“3“?“4“?“5“};
// spaceoddmarkevennone
static?char?Datenbit[4][2]??=?{“5““6““7““8“};
static?char?Stopbit[2][2]???=?{“1““2“};


/////////////////////////////////////////////////////////////////////////////
//?CConfTransfer?dialog


CConfTransfer::CConfTransfer(CWnd*?pParent?/*=NULL*/)
:?CDialog(CConfTransfer::IDD?pParent)
{
//{{AFX_DATA_INIT(CConfTransfer)
??m_Baudrate?=?-1;
??m_Com?=?-1;
??m_Datenbit?=?-1;
??m_Parity?=?-1;
??m_Stopbit?=?-1;
//}}AFX_DATA_INIT
}


void?CConfTransfer::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CConfTransfer)
DDX_Radio(pDX?IDC_B110?m_Baudrate);
DDX_Radio(pDX?IDC_COM1?m_Com);
DDX_Radio(pDX?IDC_DB5?m_Datenbit);
DDX_Radio(pDX?IDC_PARSPACE?m_Parity);
DDX_Radio(pDX?IDC_SB1?m_Stopbit);
//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(CConfTransfer?CDialog)
//{{AFX_MSG_MAP(CConfTransfer)
//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
//?CConfTransfer?message?handlers

BOOL?CConfTransfer::OnInitDialog()?
{
CDialog::OnInitDialog();

//?TODO:?Add?extra?initialization?here
CString?szSection_CFG?=?“TX?Config“;
CString?szEntry_CF????=?“KEY_CF“;
//?get?settings
CWinApp*?pApp?=AfxGetApp();
CString??Para?=pApp->GetProfileString(szSection_CFGszEntry_CF);
if?(Para.IsEmpty())
{
m_Com=0;
m_Baudrate=9;
m_Parity=4;
m_Datenbit=3;
m_Stopbit=0;
}
else
{
sscanf(Para“%d?%d?%d?%d?%d“&m_Com
?????????????????????????&m_Baudrate
?????????????????????????????????????&m_Parity
?&m_Datenbit
?&m_Stopbit);
m_Com-=1;
m_Baudrate-=1;
m_Parity-=1;
m_Datenbit-=5;
m_Stopbit-=1;
}
UpdateData(FALSE);

return?TRUE;??//?return?TRUE?unless?you?set?the?focus?to?a?control
??????????????//?EXCEPTION:?OCX?Property?Pages?should?return?FALSE
}

void?CConfTransfer::OnOK()?
{
//?TODO:?Add?extra?validation?here
CString?Para;

UpdateData(TRUE);
//?make?para
Para.Format(“%s?%s?%s?%s?%s“
??????????Com[m_Com]
??Baudrate[m_Baudrate]
??Parity[m_Parity]
?? ??Datenbit[m_Datenbit]
??Stopbit[m_Stopbit]);
///
CString?szSection_CFG?=?“TX?Config“;
CString?szEntry_CF????=?“KEY_CF“;
//?save?settings
// Para=““;testing
CWinApp*?pApp?=?AfxGetApp();
pApp->WriteProfileString(szSection_CFGszEntry_CFPara);

CDialog::OnOK();
}


?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????目錄??????????0??2008-07-01?07:42??updown_latest

?????文件???????4311??2001-05-30?09:48??updown_latest\ReadMe.txt

?????文件????????535??2001-05-30?09:48??updown_latest\updown.dsw

?????文件???????1422??2001-06-13?08:57??updown_latest\updown.h

?????文件???????1238??2001-07-06?09:38??updown_latest\StdAfx.h

?????文件????????208??2001-05-30?09:48??updown_latest\StdAfx.cpp

?????文件???????1712??2001-07-09?09:49??updown_latest\MainFrm.h

?????文件???????1475??2001-05-30?09:48??updown_latest\updownDoc.h

?????文件???????1742??2001-05-30?09:48??updown_latest\updownDoc.cpp

?????文件???????1891??2001-05-30?09:48??updown_latest\updownView.h

?????文件???????2579??2001-05-30?09:48??updown_latest\updownView.cpp

?????文件???????2231??2001-07-09?10:34??updown_latest\Uload.h

?????文件???????2935??2001-06-22?15:01??updown_latest\ConfTransfer.cpp

?????文件??????11776??2001-06-25?12:57??updown_latest\CYCLE

?????文件???????1331??2000-08-22?16:54??updown_latest\ConfTransfer.h

?????文件???????2760??2001-07-06?11:31??updown_latest\Dload.h

?????文件???????9914??2012-04-02?15:19??updown_latest\updown.clw

?????文件???????5569??2000-09-18?12:07??updown_latest\Mkarc.cpp

?????文件????????638??2000-09-18?12:07??updown_latest\Mkarc.h

?????文件???????8007??2001-06-14?15:41??updown_latest\dibapi.cpp

?????文件????????329??2001-06-25?13:38??updown_latest\ArcInfo.txt

?????文件????????523??2001-06-14?13:19??updown_latest\dibapi.h

?????文件???????1059??2001-07-06?08:55??updown_latest\fdlgTest.h

?????文件????????781??2001-07-06?08:55??updown_latest\fdlgTest.cpp

????..AD...?????????0??2002-05-24?14:59??updown_latest\res

?????文件????????398??2001-05-30?09:48??updown_latest\res\updown.rc2

?????文件???????1078??2001-05-30?09:48??updown_latest\res\updownDoc.ico

?????文件???????1078??2001-05-30?09:48??updown_latest\res\updown.ico

?????文件????????766??2001-05-30?13:22??updown_latest\res\i101.ico

?????文件????????766??2001-05-31?16:57??updown_latest\res\i100.ico

............此處省略45個文件信息

評論

共有 條評論