社区
资源
帖子详情
MFC中,怎么恢复CLW文件
janry_2005
2005-06-10 12:24:25
MFC中,怎么恢复CLW文件
...全文
258
5
打赏
收藏
MFC中,怎么恢复CLW文件
MFC中,怎么恢复CLW文件
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
5 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
sanfenxiao
2005-06-16
打赏
举报
回复
恢复的方法:
ClassWizard->Developer Studio检测到数据库不存在就会再次创建它-〉yes->Select Source Files->显示了Developer Studio将要建立类数据库所需的实现文件与头文件的列表-〉如果你已经把所有的新源文件插入到项目中了(因为你只是恢复CLW,那就别犹豫了,一起唱Only you 吧)->OK->然后有进度条提示Developer Studio正在建立数据库文件->出现ClassWizard对话框
asskisser
2005-06-15
打赏
举报
回复
删除.ncb文件
jerry
2005-06-10
打赏
举报
回复
1) 删除
2) 打开类向导, 提示你建立CLW 文件,
3) 确定,确定
qrlvls
2005-06-10
打赏
举报
回复
View->Class Wizard
选择目录 Add All
如果有子目录就改变目录后再 Add All
最后再确定
xnlcx
2005-06-10
打赏
举报
回复
同上
打开类向导, 如果没有, 会提示你建立CLW的,
xp自绘按钮的实现--
mfc
往对话框
中
添加一个按钮控件,假设它的ID值为IDC_BUTTON1。进入类向导(Class Wizard)的Member Variables属性页,为IDC_BUTTON1添加一个变量m_btnNormal。确定退出后再进行编译,就可以看到重新定义过XP风格按钮了。 如果你是之间把CXPButton的源
文件
引入自己的工程
中
的,那么在上图的Variable type
中
是看不到CXPButton选项的。但是可以通过以下方法加入: 1. 首先保存工程后退出。 2. 在工程的目录下找到一个后缀名为.
clw
的
文件
,将其删除。但是为了以防万一还是建议你实现备份一下。 3. 重新打开工程,进入类向导,此时会看到一下一个弹出对话框,我们选择“是(Yes)”。 4. 再选择“Add All”,这样我们就可以在类向导
中
使用CXPButton的变量类型了。
串口调试说明
串口调试助手源程序V1.0或VC串口通讯源程序吧, 开始吧: 1.建立项目:打开VC++6.0,建立一个基于对话框的
MFC
应用程序SCommTest(与我源代码一致,等会你会方便一点); 2.在项目
中
插入MSComm控件 选择Project菜单下Add To Project子菜单
中
的 Components and Controls…选项,在弹出的对话框
中
双击Registered ActiveX Controls项(稍等一会,这个过程较慢),则所有注册过的ActiveX控件出现在列表框
中
。 选择Microsoft Communications Control, version 6.0,,单击Insert按钮将它插入到我们的Project
中
来,接受缺省的选项。(如果你在控件列表
中
看不到Microsoft Communications Control, version 6.0,那可能是你在安装VC6时没有把ActiveX一项选上,重新安装VC6,选上ActiveX就可以了), 这时在ClassView视窗
中
就可以看到CMSComm类了,(注意:此类在ClassWizard
中
看不到,重构
clw
文件
也一样),并且在控件工具栏Controls
中
出现了电话图标(如图1所示),现在要做的是用鼠标将此图标拖到对话框
中
,程序运行后,这个图标是看不到的。 3.利用ClassWizard定义CMSComm类控制对象 打开ClassWizard->Member Viariables选项卡,选择CSCommTestDlg类,为IDC_MSCOMM1添加控制变量:m_ctrlComm,这时你可以看一看,在对话框头
文件
中
自动加入了//{{AFX_INCLUDES() #include "mscomm.h" //}}AFX_INCLUDES (这时运行程序,如果有错,那就再从头开始)。 4.在对话框
中
添加控件 向主对话框
中
添加两个编辑框,一个用于接收显示数据ID为IDC_EDIT_RXDATA,另一个用于输入发送数据,ID为IDC_EDIT_TXDATA,再添加一个按钮,功能是按一次就把发送编辑框
中
的内容发送一次,将其ID设为IDC_BUTTON_MANUALSEND。别忘记了将接收编辑框的Properties->Styles
中
把Miltiline和Vertical Scroll属性选上,发送编辑框若你想输入多行文字,也可选上Miltiline。 再打开ClassWizard->Member Viariables选项卡,选择CSCommTestDlg类, 为IDC_EDIT_RXDATA添加CString变量m_strRXData, 为IDC_EDIT_TXDATA添加CString变量m_strTXData。说明: m_strRXData和m_strTXData分别用来放入接收和发送的字符数据。
一个可以自动完成的复合框示例VC源代码
自动完成的复合框的实现在AutoCompleteCombo.cpp和AutoCompleteCombo.h两个
文件
中
,用户可以把这两个
文件
引入自己的工程
中
,删除"工程名.
clw
"
文件
后退出,再次进入工程系统会提示找不到"工程名.
clw
"
文件
,选择"“是(Yes)"重新创建一个,接下来在弹出的对话框里选择"Add all"就可以在新工程
中
使用CAutoCompleteCombo这个类了(注意引入头
文件
),我在示例对话框
中
创建了一个CAutoCompleteCombo类型的变量"m_combo",在对话框的"nInitDialog()"函数
中
添加了以下语句:// TODO: Add extra i
用OpenGL 导入 3DS 源
文件
AppWizard has created this 3DSLoader 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 3DSLoader application. MySDOpenGL.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. 3DSLoader.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CMy3DSLoaderApp application class. 3DSLoader.cpp This is the main application source file that contains the application class CMy3DSLoaderApp. 3DSLoader.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++. 3DSLoader.
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\3DSLoader.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file 3DSLoader.rc. res\3DSLoader.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. ///////////////////////////////////////////////////////////////////////////// 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
用VC实现的屏幕保护程序
用VC实现屏幕保护程序 ======================================================================== MICROSOFT FOUNDATION CLASS LIBRARY : B14 ======================================================================== AppWizard has created this B14 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 B14 application. B14.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. B14.h This is the main header file for the application. It includes other project specific headers (including Resource.h) and declares the CB14App application class. B14.cpp This is the main application source file that contains the application class CB14App. B14.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++. B14.
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\B14.ico This is an icon file, which is used as the application's icon. This icon is included by the main resource file B14.rc. res\B14.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: B14Dlg.h, B14Dlg.cpp - the dialog These files contain your CB14Dlg class. This class defines the behavior of your application's main dialog. The dialog's template is in B14.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 B14.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
MFC
42XXX.DLL from the Microsoft Visual C++ CD-ROM onto the system or system32 directory, and rename it to be
MFC
LOC.DLL. ("XXX" stands for the language abbreviation. For example,
MFC
42DEU.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. /////////////////////////////////////////////////////////////////////////////
资源
2,586
社区成员
18,441
社区内容
发帖
与我相关
我的任务
资源
VC/MFC 资源
复制链接
扫一扫
分享
社区描述
VC/MFC 资源
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章