从visual studio 6升级项目 [英] Upgrading projects from visual studio 6

查看:118
本文介绍了从visual studio 6升级项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好

我们在旧的Microsoft Visual版本6环境中编写了一个庞大的程序

用C ++编写的功能类和VB6用于GUI的程序

Proxies从C ++项目创建的COM DLL作为参考包含在VB6项目中。



我的问题:

我需要升级旧的C ++环境并摆脱VB6

1)选择什么Visual Studio版本以及如何转移VB6?

2)是否可以转移VB6?什么更好的界面选择语言:VB.net或C#?

3)你能建议我怎么做才能做更少的改变并保持高性能?

4)是否可以在C#中编写接口并在C ++上保留功能

5)C#或VB.net的哪种语言性能更好

6)How to than整合GUI项目& C ++?

7)从什么开始?



我很抱歉错误,这是我的第一个项目,我很感激任何帮助。

提前致谢。



我尝试过:



我安装了Visual Studio 2008

Hello
we have a huge program written in old Microsoft Visual version 6 environment
The program written on C++ for functional classes and on VB6 for GUI
Proxies COM DLL created from C++ project is included as reference in VB6 project.

My question:
I need to upgrade old environment for C++ and get rid from VB6
1) What Visual Studio version to choose and how to transfer VB6?
2) Whether is it possible to transfer VB6? what better language for interface to choose: VB.net or C#?
3) Can you advice please how can I do that for make less changes and to keep high performance ?
4) Is it possible to write interface in C# and leave functionality on C++
5) What language C# or VB.net will be better for performance
6) How than to integrate GUI project & C++?
7) From what to start?

I'm sorry for mistakes , it's my first project , I am grateful for any help.
Thanks in advance.

What I have tried:

I have installed Visual Studio 2008

推荐答案

我的个人想法

My personal thoughts
引用:

1)选择哪个Visual Studio版本以及如何传输VB6?

1) What Visual Studio version to choose and how to transfer VB6?

最新版本。





Latest.


引用:

2)是否可以传输VB6?选择接口的更好语言:VB.net或C#?

2) Whether is it possible to transfer VB6? what better language for interface to choose: VB.net or C#?

使用 C# GUI c $ c>。





Rewrite the same (or better) GUI using C#.


Quote:

3)你能建议我怎样才能做更少的改变并保持高性能?

3) Can you advice please how can I do that for make less changes and to keep high performance ?

可能你不必担心 GUI 代码性能。您可以保留现有的 C ++ 功能类并保持性能。您可以尝试使用现代 C ++ 功能来改进您的课程。





Probably you haven't to worry about GUI code performance. You might keep existing C++ functional classes and maintain performace. You could try to improve a bit your classes using modern C++ features.


Quote:

4)是否可以在C#中编写接口并在C ++上保留功能

4) Is it possible to write interface in C# and leave functionality on C++

是。





Yes.


Quote:

5)C#或VB.net将使用哪种语言更好的性能

5) What language C# or VB.net will be better for performance

没关系。





It doesn't matter.


引用:

6)怎么样整合GUI项目& C ++?

6) How than to integrate GUI project & C++?

它被称为 Interop [ ^ ]。





It is called Interop[^].


引用:

7)从什么开始?

开始编写一个最小的 C#GUI 能够使用你的 C ++ COM 对象。









在另一种方法中,您可以使用 C#或者,如果你是受虐狂, VB.NET

Start writing a minimal C# GUI able to use your C++ COM objects.




In another approach you could rewrite everything using C# or, if you are masochist, VB.NET.


由于VB6正式不再受支持和维护,环境不是直接可升级的,你唯一的选择是重写(vb6仍适用于较新的操作系统,可能会长时间使用,只需更新)。



在项目中查看一个新的绿色项目并重新设计/重写fr om scratch,根据你已经知道的任何内容选择vb.net或c#.net语言足够高,所以你不必担心它。
Since VB6 is officially not supported and maintained anymore, and the environment is not directly up-gradable, your only option is a rewrite (vb6 still works on newer OS's and will probably do so for a long time, just no updates).

Look at your project a new green field project and redesign/rewrite from scratch, choose vb.net or c# based on what you already know any .net language is performant enough so you should not worry about it.


这篇关于从visual studio 6升级项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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