Visual Studio 2010中的Firwall应用 [英] Firwall App in Visual Studio 2010

查看:65
本文介绍了Visual Studio 2010中的Firwall应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

没有人知道使用Visual Studio 2010编写的防火墙应用程序.似乎列出的许多代码是2003年至2005年的,不能很好地翻译到2010年和Windows 7中.
谢谢

Does anyone know of a firewall app writte with Visual Studio 2010. It seems that a lot of the code listed is from 2003 to 2005 and doesn''t translate well to 2010 as well as to Windows 7.
Thanks

推荐答案

如何不能很好地翻译?仅因为它是C ++/MFC,所以完成了99%的工作.对于普通程序员来说,为了使遗留代码能够干净地编译,应该没有太多困难.牛仔起来,付出更多的努力.

编辑(06/18/2011)===========

在原始问题中,您没有说过要成为新手.您只是暗示旧版代码翻译得不好"(无论这意味着什么).

如果它已经是MFC应用程序,请对代码进行清理/构建,然后看看会发生什么.您很有可能必须修复一些错误,并且强烈建议您也解决警告(当我使用本机C ++时,我始终在4级进行编译).一旦编译干净,您就到了一半.然后,您必须尝试运行它,这就是调试器的用武之地.简而言之,转换您自己未编写的任何旧代码将变得更加困难,因为您不熟悉它. br/>
综上所述,将遗留代码更新为新的编译器是一种很好的学习体验,但是您必须*想要*这样做.如果您没有欲望,那您将失败,因为它翻译得不好".简而言之,您必须吸收它并进行freakin''工作,或者编写自己的代码(这也意味着您必须吸收它并进行freakin''工作).

没有免费的东西.
How can it not translate well? 99% of the job is finished simply because it''s C++/MFC. There shouldn''t be too many hoops for an average programmer to jump through in order to get legacy code to compile clean. Cowboy up, and give it more effort.

EDIT (06/18/2011) ===========

You didn''t say anything about being a beginner in your original question. You merely implied that legacy code "doesn''t translate well" (whatever the hell that means).

If it''s already a MFC app, do a clean/build on the code and see what happens. Chances are very good that you''ll have to fix some errors, and it''s highly recommended that you also address the warnings (when I did native C++, I always compiled at Level 4). Once it compiles clean, you''re just halfway there. You then have to try running it, and this is where the debugger comes in. In short, converting ANY legacy code that you didn''t write yourself is going to be that much harder because you''re not familiar with it.

Now, having said all that, updating legacy code to a new compiler is a good learning experience, but you have to *want* to do it. If you don''t have the desire, you''re going to fail because "it won''t translate well". In short, you have to suck it up and just do the freakin'' work, or write your own code (which also means you have to suck it up and do the freakin'' work).

Nothing is free.


这篇关于Visual Studio 2010中的Firwall应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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