1

I have been using Visual Basic 5 since it was first released until a couple of years ago.

I re-installed it on each new laptop I bought and downloaded the service pack each time. I think it is SP2 for VB5 I need.

But having not touched it in two years I have now just installed it on a laptop to modify an app. However, it seems that Microsoft no longer offers the service pack for download.

And on opening my projects i get repeated messages for each frame telling me I "don't have the license to use the control in developer mode".

What is this error and how do I get the service packs?

StayOnTarget
  • 11,743
  • 10
  • 52
  • 81
Stephen
  • 11
  • 1
  • Where can I download a service pack from? And will this fix the license issue? – Stephen Jul 11 '10 at 23:01
  • Be specific about which SP you need. That's one. Second, if nothing helps you have two choices: 1) Install and use it on a Win98 virtual machine, or something else which is of VB6's date. 2) "Port" the code to newer version of VB. – Poni Jul 11 '10 at 23:39
  • It looks like you can still find vb6 from 3rd parties and get the fixes from microsoft. Version 5 or visual studio 97. You are probably out of luck. Backups are a wonderful thing. You can buy Visual Studio 97 used for 50$ at http://www.amazon.com/Microsoft-Visual-Studio-Professional-Version/dp/B000JF323I – Romain Hippeau Jul 11 '10 at 23:40
  • Yes backups are great for data I look after, just never occurred to me that Microsoft might stop providing service packs for older software. I think it is SP2 for VB5 I need. If I buy a newer version of VB, will my project transfer easily or will i have to re-write whole chunks of code? – Stephen Jul 21 '10 at 23:18
  • This is really two different questions. Maybe start a second and edit this down to just one. The issue about the license needs more detail - what control is causing that problem? – StayOnTarget Oct 05 '17 at 11:42

2 Answers2

1

If you port to VB6, you shouldn't have to make very many changes.

If you port to any version of VB.Net, you will find that the changes are rather extreme. An automated tool will try to do some of the work for you, but depending on how your code was written and what VB5 features you used, you will probably find that you manually need to fix up most of the changes that were made.

The biggest problem is that some of the VB5 features don't have direct equivalents in VB.Net. Do any of your forms use control arrays? You CAN do something at least vaguely similar in VB.Net, but the conversion tool doesn't know about that, so converting them will have to be completely manual.



FYI, Microsoft service packs are available in two forms. The normal update process figures out what patches are needed on your computer, then downloads them and installs them. But there's also an "administrative" version that downloads every change that MIGHT be needed, in one package. That package doesn't automatically install - when the download is complete, you have to manually start it running. The admin version is intended for system administrators, who might have to apply the same patch to dozens / hundreds / thousands of computers on a network - you shouldn't have to download the same data over and over.

The admin service packs won't help you with VB5, of course (unless you find someone that downloaded the VB5 service packs and held on to them). But if you end up going to a new version of Visual Studio (or VB), and you think that it's likely that you'll keep using them more than 6 months or so past the end of Microsoft support, you might want to get in the habit of downloading the admin service packs and archiving them somewhere. It might prevent problems like this in the future.

Allan W
  • 580
  • 1
  • 3
  • 8
0

The licensing issue is referenced on Microsoft knowledge base http://support.microsoft.com/kb/181854

A fix is available, downloadable from the same place.

Note : if you are running Windows Seven, you need to run VisualBasic in elevated mode.

d-stroyer
  • 2,638
  • 2
  • 19
  • 31