views:

1046

answers:

6

A client wants me to do some maintenance work to a VB 6.0 application (migration to .NET is also in the pipeline), but he doesn't have the development tools because he received just the source code and running application from the original programmer, who is no longer available.

Microsoft doesn't sell Visual Studio 6.0, as far as I know. How can I modify and compile the source code for a VB6 application without VB6? or Where do I get Visual Studio 6.0 if Microsoft is not selling it?.

Even if I migrate everything to .NET without releasing a new VB6 version, I would like to be able to open the project and see it compile and run to better understand it.

I have VS 2005 and VB 2008. But I understand that if I try to open the project the code will be converted to VB.NET and that's not what I would want before getting to know the project better.

A: 

To get a feel of the code, you could try to compile parts of the application in M$ Office / VBA.

Of course, this will only offer limited functionality, but may suffice for some testing.

Nescio
I have both worked with VB6 and VBA and know them well, and I don't think that the complexity of this application could be handled by VBA. If I just wanted to understand a few functions I don't need to run them, I can just read the code without problem.
Sergio Acosta
+1  A: 

Hunt Ebay or Craigslist. Or call your regular software vendor, I'm sure they can still get it for this sort of reason.

Roel
I suppose this is the easiest way. thanks for the suggestion.
Sergio Acosta
+9  A: 

From what I recall the Visual Studio 6.0 is available for MSDN Subscribers.

ShaneB
Why was this downvoted? I'm curious? Is VB6 still available to MSDN suscribers? That could be useful.
Sergio Acosta
Correct, I just checked - VB6 Enterprise Edition is there in the MSDN downloads.
Roel
+1  A: 

Both Amazon and eBay currently have copies for sale (although they seem a tad expensive but this would be a pass-through cost to your customer so it's up to them whether they pay this).

You may want to check out the licence for VB.net; it may allow you to run previous versions of the software.

The MSDN "Visual Studio 2008 Professional with MSDN Professional" has previous version of Visual Studio tools but it comes in at USD1200 so, if you just want VB6, eBay is the better option.

Keep in mind that MSDN pack has all the Visual Studio languages and VS6 through to VS2008 so it's probably got everything you need.

The other option I thought of is not legal so I won't suggest it.

paxdiablo
+1  A: 

Visual Basic 5 Control Creation Edition might be suitable to tide you over until you can get hold of a full version of VB6. There are limitations and it is 5 not 6, but depending on the scope and complexity of the application it might work for you as an interim measure.

Rob
Nope, can't recompile (anything but an OCX) with CCE. Given that was a stated requirement, it won't work for this situation.
Karl E. Peterson
Umm - I'm pretty sure CCE will allow you to fulfill the "I would like to be able to open the project and see it compile and run to better understand it." element of it, as you can run a compiled EXE, VB just doesn't write it to disk anywhere so you can't take the EXE and use it (which is why I suggested it as an *interim* measure).
Rob
+1  A: 

Many textbooks on Visual Basic 6 frequently included a fairly usable version if VB (I can't recall the exact name offhand, perhaps VB 6 student edition?) that allowed the compiling of .exe files. VB 5 textbooks usually bundled VB 5 CCE, VB 4 books bundled VB 4 WM, neither of these are suitable replacements for a production VB 6 app IMHO, especially their lack of ability to create .exe files.

I will say, Visual Studio 2005 (VB 8) converted VB 6 apps quite well if that's an acceptable interim solution (which it may not be given the requirement for the large .NET 2.0 runtimes).

coderGeek