Is there any available t开发者_如何学Cool for converting variable and loops declarations from VB.NET to C++?
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).
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/
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.
精彩评论