Results 1 to 6 of 6

Thread: HOW TO READ a vb 6.0 project in VB Net

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Mar 2005
    Posts
    2,580

    HOW TO READ a vb 6.0 project in VB Net

    HOW TO READ a vb 6.0 project in Visual studio (.Net)?

  2. #2

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,929

    Re: HOW TO READ a vb 6.0 project in VB Net

    Visual Studio 2008 (and perhaps earlier ones) had a kind of import tool for VB6 projects, but it wasn't very good... in almost every case it is better to re-write the project, and use the original project as a kind of design spec.

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    110,299

    Re: HOW TO READ a vb 6.0 project in VB Net

    You can open individual VB6 code files to read them but VS doesn't understand VB6 projects. As suggested, Microsoft used to provide a conversion tool and then they relied on a third-party to do so but that ended some time ago. You may be able to find working third-party tools now but they will not be free. Given how many manual edits were generally required even after using such a tool and the fact that the code you ended up with was always suboptimal, the usual advice was to first get a good understanding of the existing functionality and the implement that in the best way possible in VB.NET. That would often involve very different patterns and code structure, hence it would be better than an automated conversion.

  5. #5
    Bad man! ident's Avatar
    Join Date
    Mar 2009
    Location
    Cambridge
    Posts
    5,398

    Re: HOW TO READ a vb 6.0 project in VB Net

    Quote Originally Posted by jmcilhinney View Post
    You can open individual VB6 code files to read them but VS doesn't understand VB6 projects. As suggested, Microsoft used to provide a conversion tool and then they relied on a third-party to do so but that ended some time ago. You may be able to find working third-party tools now but they will not be free. Given how many manual edits were generally required even after using such a tool and the fact that the code you ended up with was always suboptimal, the usual advice was to first get a good understanding of the existing functionality and the implement that in the best way possible in VB.NET. That would often involve very different patterns and code structure, hence it would be better than an automated conversion.
    Did you ever try mobilize? Was slightly better than the inbuilt 2008 vs option but still a nightmare.

  6. #6
    Lively Member
    Join Date
    Jan 2020
    Posts
    120

    Re: HOW TO READ a vb 6.0 project in VB Net

    Although 2008 and the below version provide an automatic function to convert Vb6 code to VB.net framework. But the problem starts after the conversion, it Skips some code, adds function/variables on its own, or modify the functional behavior on its own, with it the VB.proj will be created with error and you will not be able to open it anywhere as solution file. 3rd party tools also the same.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width