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

  • 大小: 41KB
    文件類型: .rar
    金幣: 2
    下載: 0 次
    發布日期: 2021-06-10
  • 語言: 其他
  • 標簽:

資源簡介

雙機串行通信 雙機串行通信 雙機串行通信

資源截圖

代碼片段和文件信息

//?ConfigComm.cpp?:?implementation?file
//

#include?“stdafx.h“
#include?“Serial.h“
#include?“ConfigComm.h“

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

/////////////////////////////////////////////////////////////////////////////
//?CConfigComm?dialog


CConfigComm::CConfigComm(CWnd*?pParent?/*=NULL*/)
:?CDialog(CConfigComm::IDD?pParent)
{
//{{AFX_DATA_INIT(CConfigComm)
m_bSend?=?0;
//}}AFX_DATA_INIT
}


void?CConfigComm::DoDataExchange(CDataExchange*?pDX)
{
CDialog::DoDataExchange(pDX);
//{{AFX_DATA_MAP(CConfigComm)
DDX_Control(pDX?IDC_COMBO_STOPBIT?m_Combo_StopBit);
DDX_Control(pDX?IDC_COMBO_PORT?m_Combo_Port);
DDX_Control(pDX?IDC_COMBO_PARITY?m_Combo_Parity);
DDX_Control(pDX?IDC_COMBO_DATABITS?m_Combo_DataBits);
DDX_Control(pDX?IDC_COMBO_BAUDRATE?m_Combo_BaudRate);
DDX_Radio(pDX?IDC_RADIO_SEND?m_bSend);
//}}AFX_DATA_MAP
}


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

/////////////////////////////////////////////////////////////////////////////
//?CConfigComm?message?handlers

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

//?TODO:?Add?extra?initialization?here
//port

m_Combo_Port.AddString(_T(“COM1“));
m_Combo_Port.AddString(_T(“COM2“));
m_Combo_Port.SetCurSel(0);

//baudrate

m_Combo_BaudRate.AddString(_T(“110“));
m_Combo_BaudRate.InsertString(1“1200“);
m_Combo_BaudRate.InsertString(2“2400“);
m_Combo_BaudRate.InsertString(3“4800“);
m_Combo_BaudRate.InsertString(4“9600“);
m_Combo_BaudRate.InsertString(5“19200“);
m_Combo_BaudRate.InsertString(6“56000“);
m_Combo_BaudRate.SetCurSel(4);

//DataBits

m_Combo_DataBits.InsertString(0“5“);
m_Combo_DataBits.InsertString(1“6“);
m_Combo_DataBits.InsertString(2“7“);
m_Combo_DataBits.InsertString(3“8“);
m_Combo_DataBits.SetCurSel(3);

//stopbit

m_Combo_StopBit.AddString(_T(“1“));
m_Combo_StopBit.AddString(_T(“1.5“));
m_Combo_StopBit.AddString(_T(“2“));
m_Combo_StopBit.SetCurSel(0);

//Parity

m_Combo_Parity.InsertString(0“none“);
m_Combo_Parity.InsertString(1“odd“);
m_Combo_Parity.InsertString(2“event“);
m_Combo_Parity.InsertString(3“mark“);
m_Combo_Parity.InsertString(4“space“);
m_Combo_Parity.SetCurSel(0);

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

void?CConfigComm::OnOK()?
{
//?TODO:?Add?extra?validation?here
UpdateData(TRUE);
m_nPort=m_Combo_Port.GetCurSel();
m_nParity=m_Combo_Parity.GetCurSel();
m_nStopBit=m_Combo_StopBit.GetCurSel();
m_nDataBits=m_Combo_DataBits.GetCurSel();
m_nBaudRate=m_Combo_BaudRate.GetCurSel();
CDialog::OnOK();
}

void?CConfigComm::OnCancel()?
{
//?TODO:?Add?extra?cleanup?here

CDialog::OnCancel();
}


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

?????文件???????2942??2004-02-24?22:43??雙機串行通信\ConfigComm.cpp

?????文件???????1485??2004-02-24?22:42??雙機串行通信\ConfigComm.h

?????文件???????3579??2004-02-19?18:50??雙機串行通信\ReadMe.txt

?????文件???????1327??2004-02-24?22:43??雙機串行通信\resource.h

?????文件??????22472??2004-10-21?11:20??雙機串行通信\Serial.aps

?????文件???????2358??2004-11-03?09:51??雙機串行通信\Serial.clw

?????文件???????2063??2004-02-19?18:50??雙機串行通信\Serial.cpp

?????文件???????4417??2004-02-19?22:37??雙機串行通信\Serial.dsp

?????文件????????535??2004-02-19?18:50??雙機串行通信\Serial.dsw

?????文件???????1324??2004-02-19?18:50??雙機串行通信\Serial.h

?????文件??????82944??2004-11-03?10:32??雙機串行通信\Serial.ncb

?????文件??????54784??2004-11-03?10:32??雙機串行通信\Serial.opt

?????文件???????1120??2004-10-23?17:21??雙機串行通信\Serial.plg

?????文件???????7281??2004-02-24?22:43??雙機串行通信\Serial.rc

?????文件???????2883??2004-02-24?21:51??雙機串行通信\Serial1.cpp

?????文件????????807??2004-02-23?22:05??雙機串行通信\Serial1.h

?????文件??????11403??2004-11-03?10:32??雙機串行通信\SerialDlg.cpp

?????文件???????1741??2004-02-25?00:43??雙機串行通信\SerialDlg.h

?????文件????????208??2004-02-19?18:50??雙機串行通信\StdAfx.cpp

?????文件???????1089??2004-02-24?22:45??雙機串行通信\StdAfx.h

?????文件???????1078??2004-02-19?18:50??雙機串行通信\res\Serial.ico

?????文件????????398??2004-02-19?18:50??雙機串行通信\res\Serial.rc2

????..A.SH.??????3072??2004-02-24?16:24??雙機串行通信\res\Thumbs.db

?????目錄??????????0??2010-10-17?18:47??雙機串行通信\res

?????目錄??????????0??2010-10-17?18:47??雙機串行通信\Debug

?????目錄??????????0??2010-10-17?18:47??雙機串行通信

-----------?---------??----------?-----??----

???????????????211310????????????????????26


評論

共有 條評論