BoostTest

所属分类:系统编程
开发工具:Visual C++
文件大小:11044KB
下载次数:59
上传日期:2010-04-05 19:32:56
上 传 者explorer101
说明:  编写过MFC程序的朋友都知道,通过资源编辑器编辑菜单项,设定菜单项ID,然后MFC内部通过该ID来映射菜单命令处理函数和菜单界面更新函数。我设想撇开MFC的资源编辑,在MFC程序中通过xml文件来进行界面配置,然后利用字符串来映射消息处理函数。借助boost库,我实现了这一设想。具体就是在xml文件指定一个字符串,然后通过这个字符串就能找到它的命令消息处理函数和界面更新命令消息处理函数。
(MFC write-off procedures friends all know, through the resource editor to edit the menu item, set the menu item ID, and MFC-house by the ID to map menu and menu command handling function update function. I imagine MFC resource editor aside, the MFC program carried out by the interface configuration xml file, and then use the string to map the message processing function. Using boost libraries, I realized that vision. Specific xml file is to specify a string, then the string can find its command message processing functions and interface update command message processing function.)

文件列表:
BoostTest\BoostBind\BaseStruct.h (1468, 2010-04-05)
BoostTest\BoostBind\BoostBind.cpp (3944, 2010-04-05)
BoostTest\BoostBind\BoostBind.h (842, 2010-04-05)
BoostTest\BoostBind\BoostBind.rc (10161, 2010-03-28)
BoostTest\BoostBind\BoostBind.vcproj (8311, 2010-04-05)
BoostTest\BoostBind\BoostBind.vcproj.PC-200904041752.Administrator.user (1427, 2010-04-05)
BoostTest\BoostBind\BoostBindDoc.cpp (1071, 2010-03-28)
BoostTest\BoostBind\BoostBindDoc.h (564, 2010-03-28)
BoostTest\BoostBind\BoostBindView.cpp (1864, 2010-03-28)
BoostTest\BoostBind\BoostBindView.h (1001, 2010-03-28)
BoostTest\BoostBind\GlobalMacro.h (546, 2010-04-05)
BoostTest\BoostBind\MainFrm.cpp (6058, 2010-04-05)
BoostTest\BoostBind\MainFrm.h (2941, 2010-04-05)
BoostTest\BoostBind\res\BoostBind.ico (21630, 2005-11-11)
BoostTest\BoostBind\res\BoostBind.rc2 (365, 2010-03-28)
BoostTest\BoostBind\res\BoostBindDoc.ico (1078, 2005-11-11)
BoostTest\BoostBind\res\Toolbar.bmp (1078, 2005-11-11)
BoostTest\BoostBind\Resource.h (490, 2010-03-28)
BoostTest\BoostBind\stdafx.cpp (140, 2010-03-28)
BoostTest\BoostBind\stdafx.h (2489, 2010-03-28)
BoostTest\BoostBind\XmlParse.cpp (9616, 2010-04-05)
BoostTest\BoostBind\XmlParse.h (4954, 2010-04-05)
BoostTest\BoostTest.ncb (22998016, 2010-04-05)
BoostTest\BoostTest.sln (1042, 2010-04-05)
BoostTest\BoostTest.suo (10752, 2010-04-05)
BoostTest\ThirdPartyLib\boost\dll\boost_date_time-vc80-mt-1_34_1.dll (49152, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_date_time-vc80-mt-gd-1_34_1.dll (86016, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_filesystem-vc80-mt-1_34_1.dll (65536, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_filesystem-vc80-mt-gd-1_34_1.dll (98304, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_graph-vc80-mt-gd-1_34_1.dll (565248, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_serialization-vc80-mt-gd-1_34_1.dll (557056, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_signals-vc80-mt-1_34_1.dll (61440, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_signals-vc80-mt-gd-1_34_1.dll (118784, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_thread-vc80-mt-1_34_1.dll (53248, 2009-01-25)
BoostTest\ThirdPartyLib\boost\dll\boost_thread-vc80-mt-gd-1_34_1.dll (106496, 2009-01-25)
BoostTest\ThirdPartyLib\boost\include\boost\algorithm\minmax.hpp (1335, 2009-01-25)
BoostTest\ThirdPartyLib\boost\include\boost\algorithm\minmax_element.hpp (18021, 2009-01-25)
BoostTest\ThirdPartyLib\boost\include\boost\algorithm\string\case_conv.hpp (6779, 2009-01-25)
BoostTest\ThirdPartyLib\boost\include\boost\algorithm\string\classification.hpp (11825, 2009-01-25)
... ...

================================================================================ MICROSOFT 基础类库: BoostBind 项目概述 =============================================================================== 应用程序向导已为您创建了这个 BoostBind 应用程序。此应用程序不仅演示 Microsoft 基础类的基本使用方法,还可作为您编写应用程序的起点。 本文件概要介绍组成 BoostBind 应用程序的每个文件的内容。 BoostBind.vcproj 这是使用应用程序向导生成的 VC++ 项目的主项目文件。 它包含生成该文件的 Visual C++ 的版本信息,以及有关使用应用程序向导选择的平台、配置和项目功能的信息。 BoostBind.h 这是应用程序的主要头文件。它包括其他项目特定的头文件(包括 Resource.h),并声明 CBoostBindApp 应用程序类。 BoostBind.cpp 这是包含应用程序类 CBoostBindApp 的主要应用程序源文件。 BoostBind.rc 这是程序使用的所有 Microsoft Windows 资源的列表。它包括 RES 子目录中存储的图标、位图和光标。此文件可以直接在 Microsoft Visual C++ 中进行编辑。项目资源位于 2052 中。 res\BoostBind.ico 这是用作应用程序图标的图标文件。此图标包括在主要资源文件 BoostBind.rc 中。 res\BoostBind.rc2 此文件包含不在 Microsoft Visual C++ 中进行编辑的资源。您应该将不可由资源编辑器编辑的所有资源放在此文件中。 ///////////////////////////////////////////////////////////////////////////// 对于主框架窗口: 项目包含标准 MFC 界面。 MainFrm.h, MainFrm.cpp 这些文件包含框架类 CMainFrame,该类派生自 CFrameWnd 并控制所有 SDI 框架功能。 res\Toolbar.bmp 此位图文件用于为工具栏创建平铺图像。 初始工具栏和状态栏在 CMainFrame 类中构造。使用资源编辑器编辑此工具栏位图,并更新 BoostBind.rc 中的 IDR_MAINFRAME TOOLBAR 数组以添加工具栏按钮。 ///////////////////////////////////////////////////////////////////////////// 应用程序向导创建一个文档类型和一个视图: BoostBindDoc.h,BoostBindDoc.cpp - 文档 这些文件包含 CBoostBindDoc 类。编辑这些文件可以添加特殊文档数据并可实现文件保存和加载(通过 CBoostBindDoc::Serialize)。 BoostBindView.h,BoostBindView.cpp - 文档的视图 这些文件包含 CBoostBindView 类。 CBoostBindView 对象用于查看 CBoostBindDoc 对象。 ///////////////////////////////////////////////////////////////////////////// 其他功能: ActiveX 控件 应用程序包括对使用 ActiveX 控件的支持。 打印及打印预览支持 应用程序向导已通过从 MFC 库调用 CView 类中的成员函数,生成了用于处理打印、打印设置和打印预览命令的代码。 ///////////////////////////////////////////////////////////////////////////// 其他标准文件: StdAfx.h,StdAfx.cpp 这些文件用于生成名为 BoostBind.pch 的预编译头 (PCH) 文件和名为 StdAfx.obj 的预编译类型文件。 Resource.h 这是标准头文件,它定义新的资源 ID。 Microsoft Visual C++ 读取并更新此文件。 BoostBind.manifest 应用程序清单文件供 Windows XP 用来描述应用程序 对特定版本并行程序集的依赖性。加载程序使用此 信息从程序集缓存加载适当的程序集或 从应用程序加载私有信息。应用程序清单可能为了重新分发而作为 与应用程序可执行文件安装在相同文件夹中的外部 .manifest 文件包括, 也可能以资源的形式包括在该可执行文件中。 ///////////////////////////////////////////////////////////////////////////// 其他注释: 应用程序向导使用“TODO:”指示应添加或自定义的源代码部分。 如果应用程序在共享的 DLL 中使用 MFC,则需要重新发布这些 MFC DLL;如果应用程序所用的语言与操作系统的当前区域设置不同,则还需要重新发布对应的本地化资源 MFC80XXX.DLL。有关这两个主题的更多信息,请参见 MSDN 文档中有关 Redistributing Visual C++ applications (重新发布 Visual C++ 应用程序)的章节。 /////////////////////////////////////////////////////////////////////////////

近期下载者

相关文件


收藏者