MFC【exe】工程中的文件大致信息(翻译的)

摘要:
项目文件夹中有一个自述文件。以下是翻译。Down1.clw此文件包含ClassWizard用于删除现有类或添加新类的信息。ClassWizard还使用此文件存储创建和编辑消息映射和对话框数据映射以及创建原型成员函数所需的信息。此文件包含ClassWizard用于编辑现有类或添加新类的信息。ClassWizard还使用此文件存储信息,例如要创建和编辑的消息映射、对话框数据映射以及要创建的成员函数原型。此图标文件位于主资源文件Down1.rcresDown1.RC2中此文件包含MicrosoftVisual C++指定的资源。您应该将其他资源编辑器不可编辑的所有资源放在此文件中此文件包含Microsoft Visual c++无法编辑的资源////////////////////////\//////:///////////////http://///////-///////Foremainfrasmewindow:MainFrm.h,MainFrm。cpp这些文件包含框架类CMainFrame,它是从CFrameW和控制所有SDIframe功能中派生出来的。这些文件包含CMainFrame框架类,该类继承自CFrameWnd并控制所有SDI框架函数。resToolbar.bmp此位图文件用于为工具栏创建平铺图像。初始工具栏和状态在MainFrame类中构造。使用资源编辑器编辑此工具栏,并更新IDR_MAINFRAMETOOLBAR阵列的Down1.r加载的工具栏按钮。此位图文件用于为工具栏创建平铺图像。原始工具栏和状态栏是在CMainFrame类中构造的。

在工程文件夹中有个readme文件,下面是翻译过来的。

========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : Down1
========================================================================
微软基础类库


AppWizard has created this Down1 application for you.This application not only demonstrates the basics of using the Microsoft Foundation classes ,but is also a starting point for writing your application.
AppWizard已经为你创造了Down1这个应用程序。这个应用程序不仅展示了使用微软基础类的基本知识而且为你编写应用程序提供了一个起点起点。


This file contains a summary of what you will find in each of the files that make up your Down1 application.
这个文件对你将会发现每一个文件进行了一个总结,正是它们组成了你的Down1应用程序。(同样在你建其他工程时也会有这个文件,可以忽略它,但是工程里大致包括哪些文件,还是要大致了解下)

Down1.dsp
This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they should export the makefiles locally.
这个文件(项目文件)包含项目中的信息并用于构建单个项目或子项目。其他用户可以共享这个项目(.dsp)文件,但他们要在本地输出makefile。


Down1.h
This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CDown1App application class.
这是应用程序的头文件。它包括其他项目指定的头文件(包括Resource.h)并且声明了CDown1App应用程序类。


Down1.cpp
This is the main application source file that contains the application class CDown1App.
这是主应用程序源文件,其中包含应用程序类CDown1App


Down1.rc
This is a listing of all of the Microsoft Windows resources that the program uses. It includes the icons, bitmaps, and cursors that are stored in the RES subdirectory. This file can be directly edited in Microsoft Visual C++.
这是一个程序使用的所有的Microsoft Windows资源清单。它包括存储在RES目录中的图标,位图,游标。这个文件可以在Microsoft Visual c++中直接编辑。


Down1.clw
This file contains information used by ClassWizard to edit existing classes or add new classes. ClassWizard also uses this file to store information needed to create and edit message maps and dialog data maps and to create prototype member functions.
这个文件包含被ClassWizard用来编辑现有类或添加新类的信息。ClassWizard也使用这个文件来存储信息,例如:需要创建和编辑的消息映射,对话框数据映射,要创建的成员函数原型。


resDown1.ico
This is an icon file, which is used as the application's icon. This icon is included by the main resource file Down1.rc.
这是一个图标文件,用作应用程序的图标。这个图标文件在主资源文件Down1.rc

resDown1.rc2
This file contains resources that are not edited by Microsoft Visual C++. You should place all resources not editable by the resource editor in this file.
这个文件包含Microsoft Visual c++无法编辑的资源。你应该把所有资源编辑器不可编辑的资源放在这个文件中。

/////////////////////////////////////////////////////////////////////////////

For the main frame window:

MainFrm.h, MainFrm.cpp
These files contain the frame class CMainFrame, which is derived from CFrameWnd and controls all SDI frame features.
这些文件包含CMainFrame框架类,它继承于CFrameWnd并控制所有SDI框架功能。

resToolbar.bmp
This bitmap file is used to create tiled images for the toolbar.The initial toolbar and status bar are constructed in the CMainFrame class. Edit this toolbar bitmap using the resource editor, and update the IDR_MAINFRAME TOOLBAR array in Down1.rc to add
toolbar buttons.
这个位图文件用于为工具栏创建平铺的图像。最初的工具栏和状态栏是在CMainFrame类中构造。使用资源编辑器编辑这个工具栏位图,此外添加工具栏按钮要在Down1.rc中更新IDR_MAINFRAME TOOLBAR数组rc。

 

/////////////////////////////////////////////////////////////////////////////

AppWizard creates one document type and one view:
AppWizard创建了一个文档和一个视图:

Down1Doc.h, Down1Doc.cpp - the document文档
These files contain your CDown1Doc class. Edit these files to add your special document data and to implement file saving and loading (via CDown1Doc::Serialize).
这些文件包含了你的CDown1Doc类。编辑这些文件可以让你添加特殊的文档数据并实现文件保存和加载(通过CDown1Doc::Serialize)

  

Down1View.h, Down1View.cpp - the view of the document文档的视图
These files contain your CDown1View class.CDown1View objects are used to view CDown1Doc objects.
这些文件包含你的CDown1View类。CDown1View对象是用于查看CDown1Doc对象。

/////////////////////////////////////////////////////////////////////////////
Other standard files:
其它的标准文件:

StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file named Down1.pch and a precompiled types file named StdAfx.obj.
这些文件是用来建立一个名为Down1的预编译头文件(PCH)和一个名为StdAfx.obj 的预编译类型文件。


Resource.h
This is the standard header file, which defines new resource IDs.Microsoft Visual C++ reads and updates this file.
这是标准的头文件,它定义了新资源的id。Microsoft Visual c++读取和更新这个文件。


/////////////////////////////////////////////////////////////////////////////
Other notes:
其它注意的:
AppWizard uses "TODO:" to indicate parts of the source code you should add to or customize.
AppWizard使用"TODO:"提示你部分源代码应该增加或编写。


If your application uses MFC in a shared DLL, and your application is in a language other than the operating system's current language, you will need to copy the corresponding localized resources MFC42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory,and rename it to be MFCLOC.DLL. ("XXX" stands for the language abbreviation.For example, MFC42DEU.DLL contains resources translated to German.) If you don't do this, some of the UI elements of your application will remain in the
language of the operating system.
如果您的应用程序在一个共享的DLL中使用MFC,并且您的应用程序使用的语言不是操作系统的当前语言,你需要从Microsoft Visual c++光盘复制相应的本地化资源MFC42XXX.DLL到system或system32系统目录中,同时对它重命名为MFCLOC.DLL。(“XXX”代表语言的缩写。例如,MFC42DEU.DLL包含翻译成德语的资源)如果你不这样做,你的应用程序的一些UI元素
将保持操作系统使用的语言。

/////////////////////////////////////////////////////////////////////////////

统计电脑上具体的情况:工程文件夹中包括文件夹在内有18个文件,其中一个是资源文件夹,一个是调试文件夹;资源文件夹中有4个文件,调试文件夹(我把它看成是1 + 4 + 5 + 2)中包括生成的exe文件共有12个

免责声明:文章转载自《MFC【exe】工程中的文件大致信息(翻译的)》仅用于学习参考。如对内容有疑问,请及时联系本站处理。

上篇puppeteer安装/爬取数据innobackupex备份命令输出下篇

宿迁高防,2C2G15M,22元/月;香港BGP,2C5G5M,25元/月 雨云优惠码:MjYwNzM=

相关文章

Qt Quick的国际化和本地化

  国际化您的应用程序 以下部分描述了国际化QML源代码的各个方面。如果您对应用程序中的所有用户界面组件都遵循这些指南,则可以针对不同语言和本地文化约定(例如日期和数字的格式化方式)本地化应用程序的各个方面。 1.对所有Literal用户界面字符串使用qsTr() 可以使用qsTr(),qsTranslate(),qsTrId(),QT_TR_NOOP...

工作总结:VS2010/MFC编程入门之十六(对话框:消息对话框)

原文地址:http://www.jizhuomi.com/software/171.html 我们在使用Windows系统的过程中经常会见到消息对话框,提示我们有异常发生或提出询问等。因为在软件开发中经常用到消息对话框,所以MFC提供了两个函数可以直接生成指定风格的消息对话框,而不需要我们在每次使用的时候都要去创建对话框资源和生成对话框类等。这两个函数就是...

MFC避免窗口闪烁的方法(OnEraseBkgnd) .

在图形图象处理编程过程中,双缓冲是一种基本的技术。我们知道,如果窗体在响应WM_PAINT消息的时候要进行复杂的图形处理,那么窗体在重绘时由于过频的刷新而引起闪烁现象。解决这一问题的有效方法就是双缓冲技术。因为窗体在刷新时,总要有一个擦除原来图象的过程OnEraseBkgnd,它利用背景色填充窗体绘图区,然后在调用新的绘图代码进行重绘,这样一擦一写造成了图...

Gradle 翻译 build dependencies 依赖 [MD]

博文地址 我的GitHub 我的博客 我的微信 我的邮箱 baiqiantao baiqiantao bqt20094 baiqiantao@sina.com 添加构建依赖项 Add build dependencies Android Studio中的Gradle构建系统可以轻松地将外部二进制文件或其他库模块作为依赖项包含在构建中。依赖项可...

C++ MFC学习 (六)

   由于微软在VS2013 及之后不建议再使用 C/C++ 的传统库函数   scanf,strcpy,sprintf 等,所以直接使用这些库函数会提示 C4996 错误   VS建议采用带 _S的函数,如: scanf_s, strcpy_s , 但这些不是标准 C/C++ 函数。要想继续使用此函数,需要添加  _CRT_SECURE_NO_WARNI...

【转】MFC CreateFont 用法

中国人自古就有自右至左、从上到下书写汉字的习惯。而当我们在自己所编写的应用程序中使用输出函数输出的总是自左至右的横排文字。有没有可能在我们的应用程序中实现竖写汉字的效果呢?笔者偶然发现了一种利用VC实现竖写汉字效果的方法,现在就把它介绍给大家。 Windows系统内置了许多名称以“@”开头的字集,这些字集有一个共同的特点,即其所包含的文字全都是平躺着的(字...