What to do if I don't have Visual Basic 6.0 and need to compile a VB6 project?
Asked Answered
F

7

10

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.

Forrer answered 9/10, 2008 at 6:28 Comment(0)
C
16

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

Chevrotain answered 9/10, 2008 at 6:34 Comment(4)
Why was this downvoted? I'm curious? Is VB6 still available to MSDN suscribers? That could be useful.Forrer
Correct, I just checked - VB6 Enterprise Edition is there in the MSDN downloads.Bristletail
It looks like it's not anymore. All the Visual Studio pages now link out to visualstudio.com, which doesn't have the 6.0 version available. There are even a few broken links on the MSDN site to the VS 6 download page.Ariminum
Visual Basic 6.0 Enterprise is still available for download in my subscription.Decrypt
B
1

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

Bristletail answered 9/10, 2008 at 6:32 Comment(1)
I suppose this is the easiest way. thanks for the suggestion.Forrer
K
1

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.

Kowal answered 9/10, 2008 at 7:23 Comment(2)
Nope, can't recompile (anything but an OCX) with CCE. Given that was a stated requirement, it won't work for this situation.Vivianne
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).Kowal
S
1

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).

Samphire answered 16/10, 2008 at 0:58 Comment(0)
O
0

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

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

Openeyed answered 9/10, 2008 at 6:30 Comment(1)
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.Forrer
M
0

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, such as VB6 (though you'd still have to source the actual media to install it, of course).

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.

Marauding answered 9/10, 2008 at 7:6 Comment(2)
VB.Net is not backwards compatible with VB6.Woodchopper
@Paul, perhaps I didn't make it clear enough, I wasn't claiming it was backwards compatible. I meant if you buy VB.Net, the licence may allow you to run VB6 instead. I'll try to clarify.Marauding
H
0

Use the twinBASIC programming language. It is VB6 compatible and can import VB6 source code and forms.

Holbrooke answered 11/9 at 11:53 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.