将 Visual Basic 6 项目转换为 Qt/C++

发布于 2024-12-29 01:31:36 字数 60 浏览 0 评论 0原文

我正在尝试将旧的 VB6 项目转换为 Qt/C++。有人知道做到这一点的完整方法吗?

谢谢

I´m trying to convert an old VB6 project to Qt/C++. Anyone knows a throughout way to do that?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

凝望流年 2025-01-05 01:31:36

对于其他人来说,告诉您从头开始重写您的应用程序是非常好的。他们不必做这项工作。

尽管“风格”存在严重差异,但可以自动从一种语言翻译成另一种语言。您可能无法获得世界上最好的程序,但是,由于构建该程序时周围有所有这些伟大的程序员,您已经没有世界上最好的应用程序。如果您遵循“从头开始重建”的建议,除非它很小,否则您可能根本不会有任何程序。

请参阅我的关于如何翻译编程语言的答案作为替代方案。也不容易或便宜,但实用。

Its all very nice for others to tell you to rewrite your application from scratch. They don't have to do the work.

It is possible to translate automatically from one language to another, in spite of serious differences in "style". You might not get the nicest program in the world, but then, with all these great coders that were around when it was built, you already don't have the nicest application in the world. And if you follow the advice of those that say, "rebuild it from scratch", unless it is tiny, you likely won't have any program at all.

See my SO answer on how to translate programming languages for an alternative. Also not easy or cheap, but practical.

冧九 2025-01-05 01:31:36

Qt 和 VB 有完全不同的习惯用法,我认为“移植”应用程序没有意义。无论如何,我希望没有可以在这两个平台之间进行转换的工具,如果有的话,请上帝帮助作者。

最好的选择是开始在 Qt 中从头开始编写应用程序,它不再是 VB6 应用程序。

将旧应用程序作为需求参考是相当出色的。它将很好地描述你的输入、输出。不过,您应该避免将其用作设计参考。我的意思是从编程的角度来看。如果合适的话,GUI 元素可以看起来相同,尽管这是重新考虑是否有更好的方法的好机会。

Qt and VB have entirely different idioms, I don't think it would make sense to "port" the application. I hope there is no tool to convert between those two platforms anyway, god help the author(s) if there was.

Your best bet is to start writing the application from scratch in Qt, it's not a VB6 application anymore.

Having the old application as a requirements reference is fairly magnificent. It will describe your inputs, outputs fairly well. You should avoid using it as a design reference, though. I mean that from the programming point of view. The GUI elements can look the same if its appropriate, though it is a good opportunity to reconsider if there is a better way to do things.

却一份温柔 2025-01-05 01:31:36

虽然我很晚了,但作为参考,我认为我应该写一个答案。
我知道我不是在谈论VB到QT的翻译,而是使用QT库编译的可行性。
工具 Gambas 将会很有帮助。
它采用类似 VB 的语法,并使用 QT 和 GTK 来渲染小部件。
如果您需要 C++ 代码,那么它做不到。

编辑:Gambas3 是一个类似 RAD 环境的 VB。它使用 QT 来渲染小部件。语法几乎与VB类似。只需进行少量修改即可使用现有应用程序。
这种方式可以避免应用程序的重写。

Though i am very late but for reference I think I should write an answer.
I understand that I am not talking about Translation of VB to QT, But Feasibility of compilation using QT library.
The tool Gambas will be helpfull.
It takes a similar almost VB like syntax and use QT and GTK to render widgets.
If you need C++ code then NO it cant do.

EDIT: Gambas3 is a VB like RAD environment. It Uses QT to render widgets. The syntax is almost similar to VB. With few modifications existing apps can be used.
This way rewrite of application may be avoided.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文