Home All Groups Group Topic Archive Search About

Upgrading VB6 to .Net

Author
27 Feb 2006 5:50 PM
Greg P
Could someone point me to a good guide for upgrading an existing vb6
application to vb 2005?  I now know that my use of control arrays will need
to be adjusted, does the wizard to this for me?  What else don't I know about
that I will need to adjust?  I'm sure this question has been asked thousands
of times beofre but I can't seem to find a good guide by someone who isn't
trying to sell me software.

Thanks
Greg

Author
27 Feb 2006 6:02 PM
Ken Halter
Show quote Hide quote
"Greg P" <gsp@newsgroups.nospam> wrote in message
news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
> Could someone point me to a good guide for upgrading an existing vb6
> application to vb 2005?  I now know that my use of control arrays will
> need
> to be adjusted, does the wizard to this for me?  What else don't I know
> about
> that I will need to adjust?  I'm sure this question has been asked
> thousands
> of times beofre but I can't seem to find a good guide by someone who isn't
> trying to sell me software.
>
> Thanks
> Greg

Well... I can point you to a couple of books...

Free Book - Introducing Visual Basic 2005 for Developers
http://msdn.microsoft.com/vbrun/staythepath/AdditionalResources/IntroTo2005/default.aspx

Free Book - Upgrading Microsoft Visual Basic 6.0 to Microsoft Visual Basic
..NET
http://msdn.microsoft.com/vbrun/staythepath/AdditionalResources/UpgradingVB6/default.aspx

....and, regarding " What else don't I know about that I will need to
adjust?", just prepare yourself for a complete re-write. That way, any
conversion that actually works will be a pleasant surprise.

btw... wanna buy some software? ;-)

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
27 Feb 2006 6:07 PM
Ken Halter
"Greg P" <gsp@newsgroups.nospam> wrote in message
news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
> Could someone point me to a good guide for upgrading an existing vb6

....almost forgot... grab this tool. It's handy even for projects you're not
planning to migrate. (btw... that's "migrate" and not "upgrade" big
difference ;-)

Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
http://www.microsoft.com/downloads/details.aspx?FamilyID=10c491a2-fc67-4509-bc10-60c5c039a272&displaylang=en

--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
27 Feb 2006 6:45 PM
Greg P
Thanks Ken, had a good laugh after that one.  Considering I am interested in
C# I may just rewrite it in C# considering its a rewrite anyway... could you
expand on the differnce between migrate and upgrade.

Thanks,
Greg

Show quoteHide quote
"Ken Halter" wrote:

> "Greg P" <gsp@newsgroups.nospam> wrote in message
> news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
> > Could someone point me to a good guide for upgrading an existing vb6
>
> ....almost forgot... grab this tool. It's handy even for projects you're not
> planning to migrate. (btw... that's "migrate" and not "upgrade" big
> difference ;-)
>
> Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
> http://www.microsoft.com/downloads/details.aspx?FamilyID=10c491a2-fc67-4509-bc10-60c5c039a272&displaylang=en
>
> --
> Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
> Please keep all discussions in the groups..
>
>
>
Author
27 Feb 2006 7:03 PM
Dick Grier
Hi,

I'll speak (out of turn) for Ken.  Some feel that VS .NET is not an upgrade.

Others of us have more mixed thoughts.  I'm one of those.  It is an
upgrade -- that requires migration.  To fully use .NET's facilities, a
number of issues should be addressed, including some that may suggest
redesign, not just migration.  BTW, unless you want to use C# for some good
reason, such as "it's a standard in our company," there is no reason (IMO)
to choose it over VB.

..NET definitely IS a upgrade for enterprise developement, but is much less
useful for some utilities, etc.  It (still) is not as facile as VB6 in some
areas, while in other areas, .NET is much more powerful; and in these areas
RAD really IS where .NET is "at".

My own work is down to about 60% VB6, and 40% .NET (mostly VB), and I expect
that trend to continue - slowly.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004.
See www.hardandsoftware.net for details and contact information.
Author
28 Feb 2006 12:08 AM
CMM
VB has soooo many things over C# it's not even funny. C# is so barebones...
no background compile so that means no full syntax checking as you're coding
and limited intellisense. Event handling is all manual (no declarative event
handling like in VB). I'm an old-school C/C++ programmer and there's a
reason why I like VB. Because, well, it's GOOD and intuitive. Not to mention
case sensitivity... whoever thinks this is a "feature" is retarded. I like
typing endif and having it magically cased properly. I like my language to
be smart... C# is just dumb dumb dumb.

On the flipside C# has very few things over VB... ability to declare parts
of your code as "Unmanaged" is the only "hardcore" thing it's got over
VB.... but, that's a dubious feature to begin with.

--
-C. Moya
www.cmoya.com
Show quoteHide quote
"Greg P" <gsp@newsgroups.nospam> wrote in message
news:27E48F68-985C-4243-B793-D677AB4B619B@microsoft.com...
> Thanks Ken, had a good laugh after that one.  Considering I am interested
> in
> C# I may just rewrite it in C# considering its a rewrite anyway... could
> you
> expand on the differnce between migrate and upgrade.
>
> Thanks,
> Greg
>
> "Ken Halter" wrote:
>
>> "Greg P" <gsp@newsgroups.nospam> wrote in message
>> news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
>> > Could someone point me to a good guide for upgrading an existing vb6
>>
>> ....almost forgot... grab this tool. It's handy even for projects you're
>> not
>> planning to migrate. (btw... that's "migrate" and not "upgrade" big
>> difference ;-)
>>
>> Visual Basic 6.0 to Visual Basic .NET Upgrade Assessment Tool
>> http://www.microsoft.com/downloads/details.aspx?FamilyID=10c491a2-fc67-4509-bc10-60c5c039a272&displaylang=en
>>
>> --
>> Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
>> Please keep all discussions in the groups..
>>
>>
>>
Author
28 Feb 2006 3:35 PM
Paul Clement
On Mon, 27 Feb 2006 10:45:25 -0800, Greg P <gsp@newsgroups.nospam> wrote:

¤ Thanks Ken, had a good laugh after that one.  Considering I am interested in
¤ C# I may just rewrite it in C# considering its a rewrite anyway... could you
¤ expand on the differnce between migrate and upgrade.
¤

Upgrading typically implies immediate gratification while migration is the realization that the
successful completion of the upgrade will occur either just before or after the release of the next
version of the product.


Paul
~~~~
Microsoft MVP (Visual Basic)
Author
3 Mar 2006 10:35 PM
Ken Halter
Show quote Hide quote
"Paul Clement" <UseAdddressAtEndofMess***@swspectrum.com> wrote in message
news:75p802tdd1ljocbl40bn3m7dvuhvqq828r@4ax.com...
> On Mon, 27 Feb 2006 10:45:25 -0800, Greg P <gsp@newsgroups.nospam> wrote:
>
> ¤ Thanks Ken, had a good laugh after that one.  Considering I am
> interested in
> ¤ C# I may just rewrite it in C# considering its a rewrite anyway... could
> you
> ¤ expand on the differnce between migrate and upgrade.
> ¤
>
> Upgrading typically implies immediate gratification while migration is the
> realization that the
> successful completion of the upgrade will occur either just before or
> after the release of the next
> version of the product.

If you're referring to dotNet, well put! <g> Basically, "an upgrade", to me
is... something you buy that, when opening a file created by an older
version of a product, converts that file to a new format and lets you get on
with your work... Winzip (no format changes, just new functionality), Word
(same thing), InstallShield (saves the old project and uses the info to
create a project compatible with the current version. 100% guaranteed to
work, btw). I've just never had an "upgrade" to anything that required so
much effort.

I'm finally getting to the point where "some" of the sample code works on my
PC(s). I knew it was just a configuration problem. Sad part is, the VS
installer should detect these "issues" during installation and tell you how
to fix them. I mean, sheesh... if all I have to do is clear my temp folders
to get the thing to install correctly, the installer should be able to
detect files in that folder and say "please clear your temp folder before
continuing" (betchya I can get InstallShield to do that simple task <g>)

>
> Paul
> ~~~~
> Microsoft MVP (Visual Basic)


--
Ken Halter - MS-MVP-VB (visiting from VB6 world) - http://www.vbsight.com
Please keep all discussions in the groups..
Author
27 Feb 2006 11:52 PM
CMM
In terms of explaining general details, Dan Appleman's "Moving to VB.NET"
(yeah THAT Dan Appleman... if you've been coding in VB for a few years you'd
know who he is) book was the single MOST HELPFUL resource I used when making
the move.


--
-C. Moya
www.cmoya.com
Show quoteHide quote
"Greg P" <gsp@newsgroups.nospam> wrote in message
news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
> Could someone point me to a good guide for upgrading an existing vb6
> application to vb 2005?  I now know that my use of control arrays will
> need
> to be adjusted, does the wizard to this for me?  What else don't I know
> about
> that I will need to adjust?  I'm sure this question has been asked
> thousands
> of times beofre but I can't seem to find a good guide by someone who isn't
> trying to sell me software.
>
> Thanks
> Greg
Author
28 Feb 2006 10:10 AM
Carlos J. Quintero [VB MVP]
Hi Greg,

See:

Resources about upgrading from Visual Basic 6.0 to Visual Basic .NET
http://www.mztools.com/resources_net_developers.htm#Upgrade

--

Best regards,

Carlos J. Quintero

MZ-Tools: Productivity add-ins for Visual Studio
You can code, design and document much faster:
http://www.mztools.com



Show quoteHide quote
"Greg P" <gsp@newsgroups.nospam> escribió en el mensaje
news:DD9DA55E-65F7-457C-B659-E980F51D5FBE@microsoft.com...
> Could someone point me to a good guide for upgrading an existing vb6
> application to vb 2005?  I now know that my use of control arrays will
> need
> to be adjusted, does the wizard to this for me?  What else don't I know
> about
> that I will need to adjust?  I'm sure this question has been asked
> thousands
> of times beofre but I can't seem to find a good guide by someone who isn't
> trying to sell me software.
>
> Thanks
> Greg