As someone who has done this a bunch of times, this is not an easy process. You can use the VB6 to VB. Net tool as stated in this answer , and then use either Reflector or SharpDevelop to convert to C.
With the SharpDevelop conversion, a few caveats. With Reflector you lose a bunch of stuff. Also the Visual Studio converter fails on a lot of large projects, just hangs and never completes. Once you have got your code converted into C , you have to start the real work.
Also all of your code with be littered with the VB helpers rather than using proper DotNet functions all the string functions are helpers rather than class objects, for examples0.
If you used Variants at all those all have to be rewritten. If you used a lot of API calls, they tend to need rewritting. In the end you will get a base, but converting a large project forms, 30 classes, 30 modules can take several man months. Rewritting from scratch, however, may take twice as long and you lose all of your business logic.
So, it can be done I have done it with 3 or 4 large projects , but there is no panacea, no silver bullet, and any tool that says it will do it for you alone, is lying. Open your project with a new version of Visual Studio, convert your code to VB. Net and then download. Net Reflector to help you with the C transformation.
Artinsoft Now renamed to Mobilize. Net does just this, especifically the Visual Basic Upgrade Companion. But it's usually a much smaller set of the original problem. And some of the migration issues have been resolved thanks to experience with past migrations.
Artinsoft is the same company that built the wizard that ships with Visual Studio, mentioned in theraccoonbear's post. The short answer is that VB6 and VB. NET and consequently C are separate language but related languages. There are many subtle Integer being Int32 instead of Int16 and gross differences graphics, form, and printing engines between the two platforms. You need to treat this as if you are converting to a completely different platform.
The discount code below can be used to purchase a license that will allow you to migrate an application of up to 10, lines of VB6 code to VB. NET or C for free. It can also be applied when purchasing a larger license. It's not perfect, resulting code still requires lots of manual fixes until it even compiles but still this tool is worth giving a shot.
One question to ask yourself is, how important is it to have C rather than VB. This email is in use. Do you need your password? Submit your solution! When answering a question please: Read the question carefully. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem.
Insults are not welcome. Don't tell someone to read the manual. Chances are they have and don't get it. Provide an answer or move on to the next question. Let's work to help developers, not make them feel stupid. Related Questions. Is there any free tool is available to draw the existing project in.
Free VB. NET full version. Convert C to VB. Convert code from C to VB. NET and vice versa using Roslyn codeconverter. MIT License. Branches Tags. Could not load branches. Could not load tags. Latest commit. Git stats 2, commits. Failed to load latest commit information. Version 8. Jan 9, Jan 12, Try to fix up build warnings. NET 6 fea…. Dec 1, Update npm dependencies to latest.
Jan 10, Add hook to stop accidentally committing test flag. Latest News. Related searches. Most popular downloads. Never miss an update for VB. Net to C Converter again with UpdateStar. All versions. Net to C Converter 4. Net to C Converter 3. Net to C Converter 2. Net to C Converter 1.
0コメント