从C ++ Builder移植 [英] porting from C++Builder

查看:76
本文介绍了从C ++ Builder移植的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的朋友们,

我在将项目从C ++ Builder6移植到VisualC ++时遇到了麻烦。

有没有人知道是否有任何问题帮助我完成这项工作的工具?

我目前的项目是广泛使用VCL和这两个IDE(C ++ Builder和

VisualC ++)似乎到目前为止我几乎无法想到找出

a工具来自动为我做点什么。

谢谢。

Dear guys,
I''m in trouble having to port my project from C++Builder6 to VisualC++.
Has anyone of you idea if there are any tools to help my doing this job?
My current project is widely using VCL and these 2 IDE (C++Builder and
VisualC++) seems to be so far each other that I can hardly think to find out
a tool to "automatically" perform something for me.
Thank you.

推荐答案

emavisu写道:
emavisu wrote:

亲爱的朋友们,

我在将项目从C ++ Builder6移植到VisualC ++时遇到了麻烦。

有没有人你是否有任何工具可以帮助我完成这项工作?

我目前的项目是广泛使用VCL和这两个IDE(C ++ Builder和

VisualC ++)似乎是彼此到目前为止,我几乎无法想到找出

a工具来自动为我做点什么。

谢谢。
Dear guys,
I''m in trouble having to port my project from C++Builder6 to VisualC++.
Has anyone of you idea if there are any tools to help my doing this job?
My current project is widely using VCL and these 2 IDE (C++Builder and
VisualC++) seems to be so far each other that I can hardly think to find out
a tool to "automatically" perform something for me.
Thank you.



emavisu:


Visual C ++是一个编译器,而不是GUI框架。它实际上是一个编译器,用于
三种语言:C,C ++和C ++ / CLI。


如果你想用Visual C ++创建一个GUI程序你有决定是否需要一个普通的Win32应用程序(使用C或C ++),MFC应用程序(使用原生C ++的b $ b)或.NET应用程序(使用C ++ / CLI) 。


在这三种情况下,移植问题将完全不同。但是在每种情况下,在你开始之前,你应该尝试将GUI部分的C ++ Builder6应用程序的核心功能分开.b
。这个核心功能可以

然后在Visual C ++中使用。


[如果你想去.NET路线,你可能会考虑是否要写

你在C#中的应用程序的GUI部分,甚至用C#重写所有内容。]


-

David Wilkinson

Visual C ++ MVP

emavisu:

Visual C++ is a compiler, not a GUI framework. It is actually a compiler for
three languages: C, C++ and C++/CLI.

If you want to create a GUI program using Visual C++ you have to decide whether
you want a plain Win32 application (using C or C++), MFC application (using
native C++) or a .NET application (using C++/CLI).

The porting issues will be completely different in these three cases. But in
each case, before you start, you should try to separate the core functionality
of your C++Builder6 applications from the GUI part. This core functionality can
then be used in Visual C++.

[If you want to go the .NET route, you might consider whether you want to write
the GUI part of your application in C#, or even rewrite everything in C#.]

--
David Wilkinson
Visual C++ MVP


2008年10月8日星期三15:39:01 +0200,emavisu

< em*****@discussions.microsoft.comwrote:
On Wed, 08 Oct 2008 15:39:01 +0200, emavisu
<em*****@discussions.microsoft.comwrote:

亲爱的朋友们,

我遇到麻烦不得不移植我的从C ++ Builder6到VisualC ++的项目。

有没有人知道是否有任何工具可以帮助我完成这项工作?

我当前的项目广泛使用VCL和这两个IDE(C ++ Builder和

VisualC ++)似乎到目前为止,我很难想到找到

out

a工具自动为我执行某些操作。

谢谢。
Dear guys,
I''m in trouble having to port my project from C++Builder6 to VisualC++.
Has anyone of you idea if there are any tools to help my doing this job?
My current project is widely using VCL and these 2 IDE (C++Builder and
VisualC++) seems to be so far each other that I can hardly think to find
out
a tool to "automatically" perform something for me.
Thank you.



C ++ Builder(和Delphi)VCL与MFC / .NET不兼容任何方式。

唯一要做的就是继续使用Builder或David Wilkinson已经给你回复了




VCL模型接近.NET Windows Forms模型(相同的人做到了),但是

完全不兼容,因为VCL是用Pascal构建的,.NET是构建的。

in ... er ... C#和名称和一些概念是不同的。然后从VCL到.NET传递

比传递到MFC(或其他C ++
框架)要容易得多,但你会发现很多东西不能用作

预计在VCL中运行的.NET。加上Windows窗体设计师是呃..

容易崩溃你需要做非常糟糕和不常见的事情才能崩溃

VCL表单设计师。


VCL和.NET都有事件驱动用户界面的概念,

将发件人对象和事件原因传递给事件但是所有常见事物

在此处停止。概念是相同的,但名称是非常不同的。


但是你有VCL.NET,在.NET中使用Pascal和VCL的Pascal VCL扩展

,但是在C ++ Borland方面没有类似的类似微软

C ++ / CLI。

-

Microsoft Visual C ++ MVP

========================

Mi blogsobreprogramación: http://geeks.ms/blogs/rfog

Momentos Leves: http://momentosleves.blogspot.com/

Cosasmías: http://rfog.blogsome.com/

Libros,cienciaficción yprogramación

========================================

La causa de la mujer es la del hombre; los dos se levantan o sucumben

juntos。

- Alfred Tennyson。 (1809-1892)Poetabritánico。

C++Builder (and Delphi) VCL is not compatible with MFC/.NET in any way.
The only thing to do is continue with Builder or do David Wilkinson has
answered you.

VCL model is near to .NET Windows Forms model (Same person did it), but
completelly incompatible because VCL is built in Pascal and .NET is built
in... er... C# and names and some concepts are different. Then passing
from VCL to .NET is significant easier than pass to MFC (or other C++
framework), but you will find a lot of things that does not work as
expected in .NET that worked in VCL. Plus Windows Forms designer is er..
"easy to crash" and you need to do very bad and uncommon things to crash
VCL form designer.

Both VCL and .NET have the concepts of Event Driven User interface,
passing sender object and event cause to events but all common things
stops here. Concepts are the same, but names are very different.

However you have VCL.NET, an Pascal VCL extensions to use Pascal and VCL
in .NET, but there are none similar in C++ Borland side like Microsoft
C++/CLI.
--
Microsoft Visual C++ MVP
========================
Mi blog sobre programación: http://geeks.ms/blogs/rfog
Momentos Leves: http://momentosleves.blogspot.com/
Cosas mías: http://rfog.blogsome.com/
Libros, ciencia ficción y programación
========================================
La causa de la mujer es la del hombre; los dos se levantan o sucumben
juntos.
-- Alfred Tennyson. (1809-1892) Poeta británico.


感谢你考虑我的问题。我知道这些可能性和

确定我想使用.NET框架。你认为使用VisualC#更好吗?

这样我就无法重用我的C ++类。这可能是什么好处呢?


谢谢。

emavisu


" David Wilkinson"写道:
THank you for considering my question. I know these possibilities and for
sure I want to use .NET framework. Do you think it is better to use VisualC#?
In this way I cannot reuse my C++ classes. Which can be the benefits instead?

Thanks.
emavisu

"David Wilkinson" wrote:

emavisu写道:
emavisu wrote:

亲爱的朋友们,

我'我无法将我的项目从C ++ Builder6移植到VisualC ++。

如果有任何工具可以帮我完成这项工作,你们有没有人想过?

我目前的项目是广泛使用VCL和这两个IDE(C ++ Builder和

VisualC ++)似乎是彼此到目前为止,我几乎无法想到找出

a工具自动为我做点什么。

谢谢。
Dear guys,
I''m in trouble having to port my project from C++Builder6 to VisualC++.
Has anyone of you idea if there are any tools to help my doing this job?
My current project is widely using VCL and these 2 IDE (C++Builder and
VisualC++) seems to be so far each other that I can hardly think to find out
a tool to "automatically" perform something for me.
Thank you.



emavisu:


Visual C ++是一个编译器,而不是GUI框架。它实际上是一个编译器,用于
三种语言:C,C ++和C ++ / CLI。


如果你想用Visual C ++创建一个GUI程序你有决定是否需要一个普通的Win32应用程序(使用C或C ++),MFC应用程序(使用原生C ++的b $ b)或.NET应用程序(使用C ++ / CLI) 。


在这三种情况下,移植问题将完全不同。但是在每种情况下,在你开始之前,你应该尝试将GUI部分的C ++ Builder6应用程序的核心功能分开.b
。这个核心功能可以

然后在Visual C ++中使用。


[如果你想去.NET路线,你可能会考虑是否要写

你在C#中的应用程序的GUI部分,甚至用C#重写所有内容。]


-

David Wilkinson

Visual C ++ MVP


emavisu:

Visual C++ is a compiler, not a GUI framework. It is actually a compiler for
three languages: C, C++ and C++/CLI.

If you want to create a GUI program using Visual C++ you have to decide whether
you want a plain Win32 application (using C or C++), MFC application (using
native C++) or a .NET application (using C++/CLI).

The porting issues will be completely different in these three cases. But in
each case, before you start, you should try to separate the core functionality
of your C++Builder6 applications from the GUI part. This core functionality can
then be used in Visual C++.

[If you want to go the .NET route, you might consider whether you want to write
the GUI part of your application in C#, or even rewrite everything in C#.]

--
David Wilkinson
Visual C++ MVP


这篇关于从C ++ Builder移植的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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