========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : library
========================================================================
AppWizard has created this library 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.
This file contains a summary of what you will find in each of the files that
make up your library application.
library.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.
library.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CLibraryApp application class.
library.cpp
This is the main application source file that contains the application
class CLibraryApp.
library.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++.
library.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.
res\library.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file library.rc.
res\library.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.
/////////////////////////////////////////////////////////////////////////////
AppWizard creates one dialog class:
libraryDlg.h, libraryDlg.cpp - the dialog
These files contain your CLibraryDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in library.rc, which can be edited in Microsoft
Visual C++.
/////////////////////////////////////////////////////////////////////////////
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named library.pch and a precompiled types file named StdAfx.obj.
Resource.h
This is the standard header file, which defines new resource IDs.
Microsoft Visual C++ reads and updates this file.
/////////////////////////////////////////////////////////////////////////////
Other notes:
AppWizard uses "TODO:" to indicate parts of the source code you
should add to or customize.
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.
/////////////////////////////////////////////////////////////////////////////
================================================== ======================
微软基础类库:图书馆
================================================== ======================
appwizard已经创造了这个图书馆的应用给你。这项申请
不仅体现了基本的使用微软基础班
又是一个起点,书写你的申请。
该文件包含的摘要,你会发现在每一个文件
弥补你的图书馆应用。
library.dsp
这个文件(项目文件)所包含的信息,在项目的水平和
是用来建立一个单一的项目或次级。其他用户能共享
项目( 。 dsp )的档案,但他们应该输出makefile中在当地。
library.h
这是主头文件,为应用。它包括其他
项目具体的报头(包括resource.h ) ,并宣布
clibraryapp应用类。
library.cpp
这是主流,应用源档案,其中包含应用
工人阶级clibraryapp 。
library.rc
这是一个上市的所有的微软视窗消息说,
计划用途。它包括图标,位图,并于游标是存储
在第子目录。这个文件可以直接编辑,在微软
视觉的c + + 。
library.clw
此文件包含的信息用classwizard来编辑现有
班或加入新的班级。 classwizard也利用此档案储存
必要的信息,以建立和编辑的信息,地图和数据对话框
地图和制造原型的成员函数。
第\ library.ico
这是一个图标文件,它被用来作为应用程序的图标。这
图标是由包括主要资源档案library.rc 。
第\ library.rc2
该文件包含资源,不属于主编微软
视觉的c + + 。你应该把所有的资源不是由编辑
资源编辑这个文件。
////////////////////////////////////////////////// ///////////////////////////
appwizard创建的一个对话类:
librarydlg.h , librarydlg.cpp -对话框
这些文件包含有你的clibrarydlg阶层。这个类中定义
行为,你的应用程序的主对话框。对话框的
模板是在library.rc ,可编辑微软
视觉的c + + 。
////////////////////////////////////////////////// ///////////////////////////
其他标准文件:
stdafx.h , stdafx.cpp
这些档案是用来建立一个预头( pch文件)
命名library.pch和预类型文件名为stdafx.obj 。
resource.h
这是标准的头文件,其中确定了新的资源身份证。
微软的visual c + +内容,并更新此文件。
////////////////////////////////////////////////// ///////////////////////////
其他说明:
appwizard用途"待办事项: "来说明的部分源代码,你
应增加或定制。
如果你的应用使用mfc在一个共同的dll ,和你的申请
在语文以外的其他作业系统的当前语言,你
将需要复制到相应的本地化资源mfc42xxx.dll
从微软的visual c + +光盘上的系统或system32目录,
并将其重命名为被mfcloc.dll 。 (的" xxx " ,主张语言的缩写。
举例来说, mfc42deu.dll包含资源转化为德文。 )如果你
不这样做,有些用户界面元素,你的应用将会继续留在
语言的操作系统。
////////////////////////////////////////////////// ///////////////////////////
评论0