两种方法查看MFC源代码
来源:互联网 发布:淘宝的评论怎么删除 编辑:程序博客网 时间:2024/06/05 20:31
第一种--使用mfc.bsc源浏览器文件
mfc.bsc是可以查看MFC源代码的文件,其位置在MFC源代码文件夹下,Visual Studio版本不一样的话,位置也不一样。
vc6.0位置:C:/Program Files/Microsoft Visual Studio/VC98/MFC/SRC/
vc2008sp1位置:D:/Program Files/Microsoft Visual Studio 9.0/VC/atlmfc/src/mfc
类似的位置搜索下就可以找得到,MSDN上有三种方法添加.bsc文件到工程,如下原文:
To open the .bsc file
* On the File menu, click Open and open the .bsc file.
The .bsc file will be available to all projects in the solution until you either reload the solution or delete the .bsc file from Solution Explorer or the Object Browser.
To attach the .bsc file to your project
1.In Solution Explorer, right-click the project node and click Add Existing Item on the shortcut menu.
2.Browse to the .bsc file and add it to your project.
The .bsc file will only be available in the project to which it is added. You can save the project so that the .bsc file will be available the next time that you open the project. You can delete the .bsc file from Solution Explorer
To add the .bsc file to the Object Browser
*In the Object Browser, click the Customize button and browse to the desired .bsc file.
When you add .bsc files to the Object Browser with the Customize button, the files are available to all projects in any solution that you open. This setting will persist across Visual Studio sessions.
The .bsc file that is referenced in each method will then appear in the Object Browser.
这里介绍第三种方法,单击“视图”→“对象浏览器”,在弹出的“对象浏览器”面板上“浏览”→“编辑自定义组件集”→“浏览”→“文件类型”→“源浏览器文件(*.bsc)”,然后在MFC源代码文件夹下选择mfc.bsc→“添加”→“确定”,步骤如下图所示。
结果如下图所示。
此时,假如我们要查看某一个函数的话,在“搜索”框输入如:cdialog回车,就会在左边看到查询到的类信息,右边是类成员函数和变量,在右边可以按下想要搜索的函数开头字母,快速定位到以那字母开头的函数,然后右键想要查看的函数或变量选择“转到定义”,就会跳转到源代码处,如下图所示。
弹出的源代码定义,如下图所示。
第二种--使用VAX查找源代码
VAX是Visual Studio插件,VC开发人员很多使用到它,它也可以查看源代码。在工具栏上左起第三个”Find Symbol“,如下图所示。
在弹出的对话框,先勾掉”Show only symbols defined in current solution",然后输入要检索的类或函数等等,如下图所示。
结果也是定位到源代码上,如下图所示。
- 两种方法查看MFC源代码
- 两种方法查看MFC源代码
- 两种方法查看MFC源代码
- 两种方法查看MFC源代码
- 两种方法查看MFC源代码
- 两种方法查看MFC源代码
- 查看MFC类函数源代码的方法
- 查看MFC的源代码
- 查看MFC源代码
- 两种MFC源码查看方式
- 查看android源代码方法
- MFC 创建快捷方式的两种方法
- MFC加载图片的两种方法
- Linux查看版本的两种方法
- 查看MFC的源代码(bsc文件)
- 阅读MFC源代码的方法
- 查看网页源代码终极方法
- 禁止查看源代码方法汇总
- 随笔
- zImage内核镜像解压过程详解
- 三系统:XP+Win7+Ubuntu Server
- 落脚处
- WMA文件的文件头结构
- 两种方法查看MFC源代码
- 是谁在我的心里打了个结(二十三)巧合
- 了解自己!
- 仿android计算器
- sicily 1148 dp
- 将Excel中的数据导入MySQL的简单方法
- 分享一个有趣的学习方法,欢迎一起探讨如何提高学习兴趣:上限阅读法
- 霍元甲--阿里山的姑娘
- 回发或回调参数无效。