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

  • 大小: 17.91MB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發(fā)布日期: 2023-07-20
  • 語(yǔ)言: C/C++
  • 標(biāo)簽: MFC串口??

資源簡(jiǎn)介

MFC之CSerialPort類雙串口發(fā)送接收http://blog.csdn.net/cracent/article/details/50988742

資源截圖

代碼片段和文件信息


//?DoublePort.cpp?:?定義應(yīng)用程序的類行為。
//

#include?“stdafx.h“
#include?“DoublePort.h“
#include?“DoublePortDlg.h“

#ifdef?_DEBUG
#define?new?DEBUG_NEW
#endif


//?CDoublePortApp

BEGIN_MESSAGE_MAP(CDoublePortApp?CWinApp)
ON_COMMAND(ID_HELP?&CWinApp::onhelp)

END_MESSAGE_MAP()


//?CDoublePortApp?構(gòu)造

CDoublePortApp::CDoublePortApp()
{
//?支持重新啟動(dòng)管理器
m_dwRestartManagerSupportFlags?=?AFX_RESTART_MANAGER_SUPPORT_RESTART;

//?TODO:?在此處添加構(gòu)造代碼,
//?將所有重要的初始化放置在?InitInstance?中
}


//?唯一的一個(gè)?CDoublePortApp?對(duì)象

CDoublePortApp?theApp;


//?CDoublePortApp?初始化

BOOL?CDoublePortApp::InitInstance()
{
//?如果一個(gè)運(yùn)行在?Windows?XP?上的應(yīng)用程序清單指定要
//?使用?ComCtl32.dll?版本?6?或更高版本來(lái)啟用可視化方式,
//則需要?InitCommonControlsEx()。??否則,將無(wú)法創(chuàng)建窗口。
INITCOMMONCONTROLSEX?InitCtrls;
InitCtrls.dwSize?=?sizeof(InitCtrls);
//?將它設(shè)置為包括所有要在應(yīng)用程序中使用的
//?公共控件類。
InitCtrls.dwICC?=?ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);

CWinApp::InitInstance();


AfxEnableControlContainer();

//?創(chuàng)建?shell?管理器,以防對(duì)話框包含
//?任何?shell?樹視圖控件或?shell?列表視圖控件。
CShellManager?*pShellManager?=?new?CShellManager;

//?激活“Windows?Native”視覺(jué)管理器,以便在?MFC?控件中啟用主題
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));

//?標(biāo)準(zhǔn)初始化
//?如果未使用這些功能并希望減小
//?最終可執(zhí)行文件的大小,則應(yīng)移除下列
//?不需要的特定初始化例程
//?更改用于存儲(chǔ)設(shè)置的注冊(cè)表項(xiàng)
//?TODO:?應(yīng)適當(dāng)修改該字符串,
//?例如修改為公司或組織名
SetRegistryKey(_T(“應(yīng)用程序向?qū)傻谋镜貞?yīng)用程序“));

CDoublePortDlg?dlg;
m_pMainWnd?=?&dlg;
INT_PTR?nResponse?=?dlg.DoModal();
if?(nResponse?==?IDOK)
{
//?TODO:?在此放置處理何時(shí)用
//??“確定”來(lái)關(guān)閉對(duì)話框的代碼
}
else?if?(nResponse?==?IDCANCEL)
{
//?TODO:?在此放置處理何時(shí)用
//??“取消”來(lái)關(guān)閉對(duì)話框的代碼
}
else?if?(nResponse?==?-1)
{
TRACE(traceAppMsg?0?“警告:?對(duì)話框創(chuàng)建失敗,應(yīng)用程序?qū)⒁馔饨K止。\n“);
TRACE(traceAppMsg?0?“警告:?如果您在對(duì)話框上使用?MFC?控件,則無(wú)法?#define?_AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n“);
}

//?刪除上面創(chuàng)建的?shell?管理器。
if?(pShellManager?!=?NULL)
{
delete?pShellManager;
}

//?由于對(duì)話框已關(guān)閉,所以將返回?FALSE?以便退出應(yīng)用程序,
//??而不是啟動(dòng)應(yīng)用程序的消息泵。
return?FALSE;
}


?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----

????..A..H.?????40448??2016-03-26?20:38??DoublePort\.vs\DoublePort\v14\.suo

?????文件?????239104??2016-03-26?20:33??DoublePort\Debug\DoublePort.exe

?????文件????1641404??2016-03-26?20:33??DoublePort\Debug\DoublePort.ilk

?????文件????8302592??2016-03-26?20:33??DoublePort\Debug\DoublePort.pdb

?????文件???????1254??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.log

?????文件??????70369??2016-03-26?20:23??DoublePort\DoublePort\Debug\DoublePort.obj

?????文件???60030976??2016-03-26?16:59??DoublePort\DoublePort\Debug\DoublePort.pch

?????文件??????69836??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.res

?????文件???????2950??2016-03-26?20:30??DoublePort\DoublePort\Debug\DoublePort.tlog\CL.command.1.tlog

?????文件??????82490??2016-03-26?20:30??DoublePort\DoublePort\Debug\DoublePort.tlog\CL.read.1.tlog

?????文件???????2736??2016-03-26?20:30??DoublePort\DoublePort\Debug\DoublePort.tlog\CL.write.1.tlog

?????文件????????154??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\DoublePort.lastbuildstate

?????文件???????1586??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\link.command.1.tlog

?????文件???????6082??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\link.read.1.tlog

?????文件????????792??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\link.write.1.tlog

?????文件????????346??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\rc.command.1.tlog

?????文件???????2932??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\rc.read.1.tlog

?????文件????????206??2016-03-26?20:33??DoublePort\DoublePort\Debug\DoublePort.tlog\rc.write.1.tlog

?????文件??????61424??2016-03-26?20:30??DoublePort\DoublePort\Debug\DoublePortDlg.obj

?????文件??????54280??2016-03-26?17:00??DoublePort\DoublePort\Debug\doubleportdlg.obj.enc

?????文件?????169250??2016-03-26?16:59??DoublePort\DoublePort\Debug\SerialPort.obj

?????文件?????924461??2016-03-26?16:59??DoublePort\DoublePort\Debug\stdafx.obj

?????文件????2386944??2016-03-26?20:30??DoublePort\DoublePort\Debug\vc140.idb

?????文件????9072640??2016-03-26?20:30??DoublePort\DoublePort\Debug\vc140.pdb

?????文件?????108624??2016-03-26?20:33??DoublePort\DoublePort\DoublePort.aps

?????文件???????2425??2016-03-26?16:40??DoublePort\DoublePort\DoublePort.cpp

?????文件????????467??2016-03-26?16:11??DoublePort\DoublePort\DoublePort.h

?????文件??????11354??2016-03-26?20:33??DoublePort\DoublePort\DoublePort.rc

?????文件??????10880??2016-03-26?16:59??DoublePort\DoublePort\DoublePort.vcxproj

?????文件???????2262??2016-03-26?16:40??DoublePort\DoublePort\DoublePort.vcxproj.filters

............此處省略24個(gè)文件信息

評(píng)論

共有 條評(píng)論