MICROSOFT FOUNDATION CLASS LIBRARY : ( SimpleSniffer微软基础类库:简单嗅探器)
AppWizard has created this SimpleSniffer 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为您创建了这个SimpleSniffer应用程序。 此应用程序不仅演示了使用 Microsoft 基础课程的基础知识但也是编写应用程序的起点。
This file contains a summary of what you will find in each of the files that
make up your SimpleSniffer application.
此文件包含您将在每个文件中找到的内容的摘要组成您的SimpleSniffer应用程序。
SimpleSniffer.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) 文件,但它们应在本地导出生成文件。
SimpleSniffer.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CSimpleSnifferApp application class.
这是应用程序的主头文件。 它包括其他特定于项目的标头(包括 Resource.h),并声明CSimpleSnifferApp application class.
SimpleSniffer.cpp
This is the main application source file that contains the application
class CSimpleSnifferApp.
这是包含应用程序的主应用程序源文件类 CSimpleSnifferApp.
SimpleSniffer.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 子目录中。 此文件可以直接在VisualC++中编辑。
SimpleSniffer.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\SimpleSniffer.ico
This is an icon file, which is used as the application’s icon. This
icon is included by the main resource file SimpleSniffer.rc.
这是一个图标文件,用作应用程序的图标。 图标包含在主资源文件 SimpleSniffer.rc 中。
res\SimpleSniffer.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 visualC++编辑。 您应通过资源编辑器放置所有不可编辑的资源在此文件中。
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 SimpleSniffer.rc to add
toolbar buttons.
此 #位图文件# 用于为工具栏创建平铺图像。 初始工具栏和状态栏在 CMainFrame 类中。使用资源编辑器编辑此工具栏位图,以及更新在 SimpleSniffer.rc 中的 IDR_MAINFRAME TOOLBAR 数组,以添加工具栏按钮。
AppWizard creates one document type and one view:AppWizard AppWizard创建一个文档类型和一个视图:
SimpleSnifferDoc.h, SimpleSnifferDoc.cpp - the document
These files contain your CSimpleSnifferDoc class. Edit these files to
add your special document data and to implement file saving and loading
(via CSimpleSnifferDoc::Serialize).
这些文件包含您的 CSimpleSnifferDoc 类。 编辑这些文件来添加您的特殊文档数据,并实现文件保存和加载(通过 CSimpleSnifferDoc::Serialize)。
SimpleSnifferView.h, SimpleSnifferView.cpp - the view of the document
These files contain your CSimpleSnifferView class.
CSimpleSnifferView objects are used to view CSimpleSnifferDoc objects.
这些文件包含您的 CSimpleSnifferView 类。 CSimpleSnifferView 对象用于查看 CSimpleSnifferDoc 对象。
Other standard files:
StdAfx.h, StdAfx.cpp
These files are used to build a precompiled header (PCH) file
named SimpleSniffer.pch and a precompiled types file named StdAfx.obj.
这些文件用于构建预编译头 (PCH) 名为 SimpleSniffer.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:"来指示您的部分源代码应添加到或自定义。文章来源:https://www.toymoban.com/news/detail-474373.html
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,并且您的应用程序使用操作系统当前语言以外的语言,您将需要复制相应的本地化资源 MFC42XXX。断续器从 Microsoft Visual C++ CD-ROM 到系统或 system32 目录中,并将其重命名为 MFCLOC。DLL.("XXX"代表语言缩写。例如,MFC42DEU。DLL 包含翻译成德语的资源) 如果您不要这样做,应用程序的某些 UI 元素将保留在操作系统的语言。文章来源地址https://www.toymoban.com/news/detail-474373.html
到了这里,关于SimpleSniffer—ReadMe的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!