Growlith1223 Posted February 11, 2012 Author Share Posted February 11, 2012 Hi um i know this is kinda irrelevant but…Is there a converter on here so i can convert my code from VB6 to C#? Link to comment Share on other sites More sharing options...
Godlord Posted February 12, 2012 Share Posted February 12, 2012 Why would/do you want to convert it from Microsoft Visual Basic 6 to Microsoft C#.net? C or C++ would be far more useful. Additionally, it isn't exactly possible. Writing compilers to compile any language to bytecode, machine code or Assembly, or another flexible language is hard. Writing compilers that also support optimisation, is way harder. Writing a compiler that converts a restricted language to another restricted language, with optimisations, with the proper conversions of interfaces is improbable.If you really want this to be converted from Microsoft Visual Basic to Microsoft C#, you'll have to rewrite the entire engine in Microsoft C# from scratch. If you knew how to do that, you would realise that Microsoft C# would be a poor choice.Yours faithfully, Stephan. Link to comment Share on other sites More sharing options...
_Her0 Posted February 12, 2012 Share Posted February 12, 2012 Virtually, there's no converter for any language, I believe. If there was, there'd have to be VERY similar code. I.E, print would make text print in one language, and printline would make text print in another, the converter would convert print to printline, fixing the problem. That wouldn't work here, as Visual Basic 6 is completely different than any other language. Link to comment Share on other sites More sharing options...
Godlord Posted February 12, 2012 Share Posted February 12, 2012 No, compilers and assemblers do exist and are very common, as processors always execute machine code, and as virtual machines almost always execute bytecode. Compilers that do convert language X to language Y are very exotic though.Yours faithfully, Stephan. Link to comment Share on other sites More sharing options...
Robin Posted February 12, 2012 Share Posted February 12, 2012 **tl;dr:** No, and you shouldn't be looking for one. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now