需要帮助:从C ++迁移到C#.NET [英] Help Needed: migrating from C++ to C#.NET
问题描述
当前,我们有一个管理系统,它是一个基于主机的应用程序,用户可以从使用以下技术"开发的基于PC的前端进行访问.
Currently we have an administration system which Is a host-based application, accessible to users from a PC-Based Front-End Developed with Below Technologies.
- 平台包括:Windows XP/7,包括DB/2,MQ系列,Visual C ++,用于NT/XP的LANDP
- 热点:包括MVS,Shandi(MFS),JCL,OO COBOL,DB/2,Easytrieve
- 前端层和中间层是C ++.
我的问题是
- 如果将其从C ++迁移到C#.NET,它将如何受益
- 我们可能面临的挑战
- 关于性能哪个更好(C ++或C#.NET)
- How It’s Going to Benefit if we migrate it from C++ to C#.NET
- What we need to consider when we wanted to migrate from C++ to C#.NET,
- What Challenges we may FACE
- With Respect to Performance which one is Better (C++ or C#.NET)
- Where we need to start
或者您对此有何看法.
请帮助我...
Please Help me with this…
谢谢.
推荐答案
我假设您的代码当前是标准" C ++,而不是C ++/CLI.
I'm assuming that your code is currently 'standard' C++, and not C++/CLI.
1.对于大多数人来说,最大的好处是使用C ++以外的几乎任何语言(例如C#)进行编程要容易得多. C ++非常困难且令人无法原谅,更不用说当您得到某些东西时可怕的编译器消息了 错误的. 我要大步走出去,建议C ++程序员需要大约10年的经验来精通该语言,而对于C#则需要不到5年.
1. The biggest benefit is that for most people it's far easier to program in almost any language (such as C#) other than C++. C++ is notoriously difficult and unforgiving, not to mention the horrible compiler messages when you get something wrong. I'm going to go out on a limb and suggest that a C++ programmer needs about 10 years experience to master the language, while less than 5 years for C#.
2.通常,使用C ++编写多平台代码会更容易,但是从您的技术列表来看,这似乎并不是真正的问题,并且C#非常适合Windows环境.
2. Generally, it's easier to write multi-platform code with C++, but from your list of technologies it looks like that's not really an issue and C# is well-suited to a Windows environment.
3.代码转换并不容易-您可能必须手动重写很多代码. 然后,您应该愿意进行大量测试,以确保新代码具有相同的效果-希望您已经进行了大量的单元测试.
3. Code conversion is not easy - you may have to manually rewrite a lot of code. Then you should be willing to do a *lot* of testing to ensure the new code has the same effect - hopefully you already have a ton of unit tests.
4.标准C ++可以使您编写性能更好的代码,但这需要您真正了解C ++并完美地完成所有工作-很少有C ++程序员足以做到这一点. 看到我的 在#1中发表评论.
4. Standard C++ has the potential to allow you to write better-performing code, but that requires that you really know C++ well and do everything perfectly - relatively few C++ programmers are good enough to do this. See my comments in #1.
5.重新检查您为什么要迁移代码. 这不能掉以轻心.
5. Re-examine why you want to migrate the code. It's not to be taken lightly.
这篇关于需要帮助:从C ++迁移到C#.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!