简体   繁体   English

vs2010编译了在win2k中运行的MFC应用程序

[英]vs2010 compiled MFC app running in win2k

The company I work for has a large native MFC based application. 我工作的公司有一个大型的基于MFC的应用程序。 We're currently using vs2008, but for the next version we're hoping to move to vs2010, mainly for the new C++0x features. 我们目前正在使用vs2008,但是对于下一个版本,我们希望转向vs2010,主要是针对新的C ++ 0x功能。 Unfortunately we've a very small minority of Citrix customers who are sticking with Win2k server due to licence costs. 不幸的是,由于许可证成本的原因,我们只有极少数的Citrix客户坚持使用Win2k服务器。

I discovered today that there is a problem with vs2010 compiled native apps on win2k, and someone has posted a few solutions here 我今天发现在win2k上vs2010编译的原生应用程序存在问题,有人在这里发布了一些解决方案

Can I use Visual Studio 2010's C++ compiler with Visual Studio 2008's C++ Runtime Library? 我可以在Visual Studio 2008的C ++运行时库中使用Visual Studio 2010的C ++编译器吗?

I've tried the fasm method with a simple MFC app and it doesn't work (it does for a console app), presumably because MFC also has links with non-win2k compliant libraries? 我已经尝试了一个简单的MFC应用程序的fasm方法,它不起作用(它适用于控制台应用程序),可能是因为MFC还与非win2k兼容的库有链接? I was going to try cooking my own crt but MS haven't provided the files to build it. 我打算尝试烹饪我自己的crt,但MS没有提供构建它的文件。

Am I wasting my time trying to look into ways of getting our app to work under win2k and is it just a case of either reverting back to vs2008 or targeting 2008 from 2010? 我是否在浪费时间试图让我们的应用程序在win2k下运行,是否只是回归到vs2008或从2010年开始定位到2008年的情况?

regards 问候

Having to support such an old operating system seems unreasonable, although I understand that supporting legacy systems is part of our profession. 必须支持这样一个旧的操作系统似乎是不合理的,虽然我理解支持遗留系统是我们职业的一部分。

I would go to the suits in your org and explain your dilemma - 我会去你的组织中的西装并解释你的困境 -

  • Supporting the old OS is costing the org a "lowest common denominator" product 支持旧操作系统会使组织成为“最低公分母”产品

  • Small customer base == small return on investment 小客户群= =小投资回报率

  • Large / unreasonable effort in maintaining two code branches (legacy and current) 维护两个代码分支(遗留和当前)的大量/不合理的努力

Explain to the suits that the customer may upgrade if they're threatened with being left behind. 向客户解释,如果他们受到落后的威胁,客户可能会升级。

If no-one will bend and you gotta support, you've got a few options: 如果没有人会屈服并得到你的支持,你有几个选择:

  • Ask your employer to buy the licenses for your customers and demonstrate how it'll save them money in development costs. 请您的雇主为您的客户购买许可证,并演示如何为开发成本节省资金。

  • Stay with VS2008. 继续使用VS2008。 Ask your mgmt how long they intend to support the legacy OS and tell them that that's how long your product is going to stagnate for. 询问你的mgmt他们打算支持传统操作系统多长时间,并告诉他们你的产品将停滞多久。 Back this up with prototypes of stuff you can't do - because you have to support this legacy OS. 用你不能做的东西的原型来支持这个 - 因为你必须支持这个传统的操作系统。

  • Maintain two code branches. 维护两个代码分支。

  • Quit - there's a million development jobs out there where the employer is happy to let your technological experience stagnate in old technology, so long as your bringing in the money. 退出 - 那里有一百万个开发工作,雇主很乐意让你的技术经验停滞在旧技术中,只要你带来钱。 And there are great employers out there - who'll listen to your advice, side with you and squeeze their customers on these issues. 那里有很多雇主 - 谁会倾听你的意见,支持你,并在这些问题上挤压顾客。

Customers never want to upgrade, but it's been my experience that they normally do - if they're squeezed... 客户永远不想升级,但这是我的经验,他们通常会做 - 如果他们被挤压......

I know that quitting may seem drastic - and it may not be the best option for you. 我知道戒烟可能看起来很激烈 - 它可能不是你的最佳选择。 I spent a couple of years as a web developer, a problem space I wasn't interested in - and with an inflexible employer - leaving it was the best thing that ever happened to me(!) 我花了几年时间作为一名网络开发人员,一个我不感兴趣的问题空间 - 以及一个不灵活的雇主 - 留下这是我遇到过的最好的事情(!)

In just over a year, I've made lead developer and doubled my salary - and I really enjoy my job! 在短短一年多的时间里,我成为了首席开发人员,并将工资增加了一倍 - 我真的很喜欢我的工作!

There are better employers out there - and if your employer is dismissing your advice in order to support an insignificant customer base, it may be time to consider if you're working for the right employer! 那里更好的雇主 - 如果你的雇主为了支持一个微不足道的客户群而放弃你的建议,那么可能是时候考虑你是否为合适的雇主工作了!

我自己没试过(我的意思不是MFC应用程序),但看看这篇文章: http//tedwvc.wordpress.com/2010/11/07/how-to-get-visual-c-2010 -mFc应用到在窗口运行-2000 /

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM