MFC【exe】工程中的文件大致信息(翻译的)
在工程文件夹中有个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也使用这个文件来存储信息,例如:需要创建和编辑的消息映射,对话框数据映射,要创建的成员函数原型。
res\Down1.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
res\Down1.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框架功能。
res\Toolbar.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个