从 VB.NET 到 C++ 的变量和循环转换?

发布于 2024-09-07 05:12:16 字数 40 浏览 1 评论 0原文

有没有可用的工具将变量和循环声明从 VB.NET 转换为 C++?

Is there any available tool for converting variable and loops declarations from VB.NET to C++?

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

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

发布评论

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

评论(3

花辞树 2024-09-14 05:12:16

如果您正在谈论 C++/CLI,那么您可以考虑使用 Reflector.NET 将 VB.NET 转换为 C++/CLI。如果您正在谈论托管/非托管桥接,那么 .net 框架会为您完成此操作(编组)。

If you're talking about C++/CLI then you may consider using Reflector.NET to convert VB.NET to C++/CLI. If you're talking about managed/unmanaged bridge then .net framework does that for you (marshalling).

风筝在阴天搁浅。 2024-09-14 05:12:16

不确定 C++ 到底是什么,但有一个转换工具可以转换为 C#,这将是接近的 - 尽管您无法访问 C++ 中的 .net 框架特定方法(除非您使用 C++ .Net)。

http://www.developerfusion.com/tools/convert/vb-to -csharp/

Not sure about C++ exactly, but there's a conversion tool which would convert to C# which would be close-ish - though you won't have access to .net framework-specific methods in C++ (unless you're using C++ .Net).

http://www.developerfusion.com/tools/convert/vb-to-csharp/

蓝海似她心 2024-09-14 05:12:16

我真的很怀疑。与 VB->C# 转换不同,VB 与 C++ 完全不同。您不想将 VB 转换为 C++,您最终会得到一团糟的程序。

使用标准 C++ 约定用 C++ 重写代码。

I'd really doubt it. Unlike VB->C# conversion, VB is a entirely different beast that C++. You don't want to convert VB to C++, you'll end up with a mess of a program.

Rewrite your code in C++ using standard C++ conventions.

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