Re: Code Advisor Q

Tech-Archive recommends: Speed Up your PC by fixing your registry



Pop` wrote:

I just downloaded the MS VB6 Code Advisor to check it out.
Do you folk consider it of any value for a neophyte such as myself?

IIRC, it's supposed to tell you how to change your code - that code that you don't /want/ to change because it runs all your existing software perfectly well and you don't want risk breaking it - so that the code will better "migrate" to VB.Net.

You follow its advice and change your code, feed /that/ into the "upgrade wizard" and it comes out with yet more, different code. Then you finally start to get to grips with the new language, realise that the code you know have is appallingly sub-optimal and re-write it more-or-less from scratch.
Worthwhile? YMMV.

I have NO idea whether I'll ever go to .net; right now I feel no need to, and that seems to be what the program is really aimed at. I'm such a neophyte though, I figure anything that critiques my work might teach me something<g>.

Since VB6 (SP6) /will/ run on Windows Vista (/unlike/ VB.Net 2002 and 2003), there's no pressing need for you to change over to VB.Net.

The Code Advisor is probably of most use to those with truly /massive/ code resources that they need to "port" to the new language with [supposedly] minimal code changes - although, as you've discovered, "minimal" is still pretty extensive.

In the vast majority of cases, you're better off reworking the code using the features of the new language rather than trying to shoe-horn old code into the new compilers.

HTH,
Phill W.
.



Relevant Pages

  • Re: Code Advisor Q
    ... Phill W. wrote: ... Do you folk consider it of any value for a neophyte such as myself? ... IIRC, it's supposed to tell you how to change your code - that code ...
    (microsoft.public.vb.general.discussion)
  • Code Advisor Q
    ... General question: I just downloaded the MS VB6 Code Advisor to check it ... Do you folk consider it of any value for a neophyte such as myself? ...
    (microsoft.public.vb.general.discussion)