如何在MS Studio C ++中更改MS代码 [英] How to change MS code in MS Studio C++

查看:110
本文介绍了如何在MS Studio C ++中更改MS代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我发布的另一个问题的解决方案的一部分。但是,我想把它分开,这样可以减少它的混乱。



我需要在一个名为CRecentFileList的Microsoft例程中更改一行::在Microsoft中添加文件名为filelist.cpp。这是Microsoft基础类的一部分。



1)我可以将filelist.cpp作为新文件复制到我的程序中吗?  若然,怎么样?
b
$
2)或者我应该更改filelist.cpp并重新编译MFC?

This is part of a solution to another problem I posted. However, I'd like to separate it out it make it less confusing.

I need to change one line in a Microsoft routine called CRecentFileList::Add in a Microsoft file called filelist.cpp. that is part of the Microsoft Foundation Classes.

1) Can I copy over filelist.cpp into my program as a new file?  If so, how?

2) Or should I change filelist.cpp and recompile the MFC?

推荐答案

该函数是虚函数,因此您可以尝试创建一个新类CMyRecentFileList,它继承自CRecentFileList并覆盖Add方法。
The function is virtual, so you can try creating a new class CMyRecentFileList, that inherits from CRecentFileList and override the Add method.


这篇关于如何在MS Studio C ++中更改MS代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆