MFC中,怎么恢复CLW文件

janry_2005 2005-06-10 12:24:25
MFC中,怎么恢复CLW文件
...全文
258 5 打赏 收藏 转发到动态 举报
写回复
用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的,
串口调试助手源程序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分别用来放入接收和发送的字符数据。
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实现屏幕保护程序 ======================================================================== 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 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. /////////////////////////////////////////////////////////////////////////////

2,586

社区成员

发帖
与我相关
我的任务
社区描述
VC/MFC 资源
社区管理员
  • 资源
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧