-
大小: 50.9MB文件类型: .rar金币: 1下载: 0 次发布日期: 2022-05-19
- 语言: 其他
- 标签: ZigBee,MFC
资源简介
基于网蜂ZigBee实验平台上开发的上位机,用于实现PC与ZigBee网络模块之间的数据交换,实现无线监控功能
代码片段和文件信息
// MFCApplication1.cpp : 定义应用程序的类行为。
//
#include “stdafx.h“
#include “MFCApplication1.h“
#include “MFCApplication1Dlg.h“
#ifdef _DEBUG
#define new DEBUG_NEW
#endif
// CMFCApplication1App
BEGIN_MESSAGE_MAP(CMFCApplication1App CWinApp)
ON_COMMAND(ID_HELP &CWinApp::onhelp)
END_MESSAGE_MAP()
// CMFCApplication1App 构造
CMFCApplication1App::CMFCApplication1App()
{
// 支持重新启动管理器
m_dwRestartManagerSupportFlags = AFX_RESTART_MANAGER_SUPPORT_RESTART;
// TODO: 在此处添加构造代码,
// 将所有重要的初始化放置在 InitInstance 中
}
// 唯一的一个 CMFCApplication1App 对象
CMFCApplication1App theApp;
// CMFCApplication1App 初始化
BOOL CMFCApplication1App::InitInstance()
{
// 如果一个运行在 Windows XP 上的应用程序清单指定要
// 使用 ComCtl32.dll 版本 6 或更高版本来启用可视化方式,
//则需要 InitCommonControlsEx()。 否则,将无法创建窗口。
INITCOMMONCONTROLSEX InitCtrls;
InitCtrls.dwSize = sizeof(InitCtrls);
// 将它设置为包括所有要在应用程序中使用的
// 公共控件类。
InitCtrls.dwICC = ICC_WIN95_CLASSES;
InitCommonControlsEx(&InitCtrls);
CWinApp::InitInstance();
AfxEnableControlContainer();
// 创建 shell 管理器,以防对话框包含
// 任何 shell 树视图控件或 shell 列表视图控件。
CShellManager *pShellManager = new CShellManager;
// 激活“Windows Native”视觉管理器,以便在 MFC 控件中启用主题
CMFCVisualManager::SetDefaultManager(RUNTIME_CLASS(CMFCVisualManagerWindows));
// 标准初始化
// 如果未使用这些功能并希望减小
// 最终可执行文件的大小,则应移除下列
// 不需要的特定初始化例程
// 更改用于存储设置的注册表项
// TODO: 应适当修改该字符串,
// 例如修改为公司或组织名
SetRegistryKey(_T(“应用程序向导生成的本地应用程序“));
CMFCApplication1Dlg dlg;
m_pMainWnd = &dlg;
INT_PTR nResponse = dlg.DoModal();
if (nResponse == IDOK)
{
// TODO: 在此放置处理何时用
// “确定”来关闭对话框的代码
}
else if (nResponse == IDCANCEL)
{
// TODO: 在此放置处理何时用
// “取消”来关闭对话框的代码
}
else if (nResponse == -1)
{
TRACE(traceAppMsg 0 “警告: 对话框创建失败,应用程序将意外终止。\n“);
TRACE(traceAppMsg 0 “警告: 如果您在对话框上使用 MFC 控件,则无法 #define _AFX_NO_MFC_CONTROLS_IN_DIALOGS。\n“);
}
// 删除上面创建的 shell 管理器。
if (pShellManager != NULL)
{
delete pShellManager;
}
// 由于对话框已关闭,所以将返回 FALSE 以便退出应用程序,
// 而不是启动应用程序的消息泵。
return FALSE;
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1195008 2017-05-23 21:09 MFCApplication0523\MFCApplication1\MFCApplication1\Debug\MFCApplication1.exe
文件 94240768 2017-05-19 15:23 MFCApplication0523\MFCApplication1\MFCApplication1\ipch\mfcapplication1-37cddc0\mfcapplication1-918e51e7.ipch
文件 94044160 2017-05-23 19:40 MFCApplication0523\MFCApplication1\MFCApplication1\ipch\mfcapplication1-ed1e0ed4\mfcapplication1-918e51e7.ipch
文件 939084 2017-05-23 21:09 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.aps
文件 2491 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.cpp
文件 497 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.h
文件 16184 2017-05-23 21:09 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.rc
文件 6540 2017-05-22 11:24 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.vcxproj
文件 2621 2017-05-22 11:27 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.vcxproj.filters
文件 222 2017-05-23 21:08 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1.vcxproj.user
文件 12054 2017-05-23 20:51 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1Dlg.cpp
文件 1496 2017-05-22 20:30 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\MFCApplication1Dlg.h
文件 547 2017-05-19 16:07 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\mscomm1.cpp
文件 11594 2017-05-19 16:07 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\mscomm1.h
文件 4013 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\ReadMe.txt
....... 67777 2013-07-22 01:18 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\res\MFCApplication1.ico
文件 686 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\res\MFCApplication1.rc2
文件 346854 2017-05-22 11:07 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\res\u=40948755173817497070&fm=23&gp=0.bmp
文件 480054 2017-05-22 11:07 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\res\u=8677147803610575475&fm=23&gp=0.bmp
文件 3268 2017-05-22 20:16 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\resource.h
文件 354 2017-05-22 11:24 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\resource.hm
文件 148 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\stdafx.cpp
文件 1578 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\stdafx.h
文件 234 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\targetver.h
文件 82444288 2017-05-23 21:20 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1.sdf
文件 991 2017-05-19 14:46 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1.sln
..A..H. 35840 2017-05-23 21:20 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1.v12.suo
目录 0 2017-05-19 15:23 MFCApplication0523\MFCApplication1\MFCApplication1\ipch\mfcapplication1-37cddc0
目录 0 2017-05-23 19:40 MFCApplication0523\MFCApplication1\MFCApplication1\ipch\mfcapplication1-ed1e0ed4
目录 0 2017-05-23 23:05 MFCApplication0523\MFCApplication1\MFCApplication1\MFCApplication1\Debug
............此处省略10个文件信息
- 上一篇:基于ssm的物流网站的设计与实现源码
- 下一篇:规划算法中文版
评论
共有 条评论