========================================================================
MICROSOFT FOUNDATION CLASS LIBRARY : Demo
========================================================================
AppWizard has created this Demo 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 Demo application.
Demo.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.
Demo.h
This is the main header file for the application. It includes other
project specific headers (including Resource.h) and declares the
CDemoApp application class.
Demo.cpp
This is the main application source file that contains the application
class CDemoApp.
Demo.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++.
Demo.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\Demo.ico
This is an icon file, which is used as the application's icon. This
icon is included by the main resource file Demo.rc.
res\Demo.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:
DemoDlg.h, DemoDlg.cpp - the dialog
These files contain your CDemoDlg class. This class defines
the behavior of your application's main dialog. The dialog's
template is in Demo.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 Demo.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.
/////////////////////////////////////////////////////////////////////////////
没有合适的资源?快使用搜索试试~ 我知道了~
利用EXE文件自身保存数据(软件自升级)
共20个文件
h:4个
cpp:3个
dsp:1个
需积分: 14 44 下载量 149 浏览量
2013-03-23
16:11:34
上传
评论 2
收藏 852KB RAR 举报
温馨提示
通常软件保存用户数据无非两种方法: 1.自己建立文件保存用户数据。 2.在注册表中保存数据。 有没有可能利用软件可执行文件自身来保存数据呢?因为软件还在运行,直接修改自身是不可能的。但有一种间接的方法:先制作一个自身的副本,然后修改副本后退出。退出时运行副本,副本运行时将自身复制为主后退出。副本退出时再运行主本,此时主本再删除副本。 整个过程的关键是识别自身是主本还是副本及此次运行要执行的操作。这些可通过加命令行参数来识别。 如果副本运行时主本还未退出,则复制或删除会失败,所以要等待动作成功完成后再进行下一步。 缺点是退出到副本能运行之间有段时间的,所以窗口会闪一下。 此方法可用于软件自升级,即用下载到的新软件替换自身。
资源推荐
资源详情
资源评论
收起资源包目录
Demo.rar (20个子文件)
Demo
Demo.rc 5KB
Resource.h 728B
Release
res
Demo.rc2 396B
Demo.ico 1KB
Thumbs.db 3KB
DemoDlg.cpp 5KB
Demo.dsp 4KB
Demo.ncb 65KB
DemoDlg.h 1KB
Demo.cpp 4KB
Demo.aps 20KB
Demo.h 2KB
Demo.clw 1KB
StdAfx.cpp 206B
Demo.dsw 514B
StdAfx.h 1KB
Demo.opt 50KB
Debug
Demo.bsc 2.98MB
Demo.plg 3KB
ReadMe.txt 3KB
共 20 条
- 1
资源评论
VcTrue
- 粉丝: 4
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功