Recompiling pre-.NET VB

Status
Not open for further replies.

GohanIYIan

Ars Legatus Legionis
10,196
(Yes, I know. The C# .NET replacement is in development. I'm looking for a stopgap solution in the meantime).

So I have an ancient-ish VB project that I'd like to make a couple small tweaks to. The first line of the .frm file says "VERSION 5.00" so I'm guessing VB5.

The changes I want to make are simple and the syntax is straightforward enough. Where I'm stumped is how to recompile the thing. Buying VB5/VB6 doesn't seem possible any more and my understanding is VB.NET will just do some automated porting. Is there any legal way to get a hold of a compatible compiler these days?
 

GohanIYIan

Ars Legatus Legionis
10,196
Next you'll say I should be using Visual Studio instead of calling csc.exe directly :D

Most of my work is in PHP. I'm dealing essentially with a VB (or C#) wrapper that embeds a WebBrowser object in a full screen form. The wrapper, being stateful, can monitor a serial port and feed device input into the browser. It's code that very, very rarely changes so it's hard to justify the subscription.
 

Vince-RA

Ars Praefectus
5,524
Subscriptor++
Blacken00100":173mvtxg said:
Vince-RA":173mvtxg said:
An MSDN sub comes with access to VB6. If you're planning to do C# dev, you really should have one anyway.
Only if you can get someone else to pay for it. It's retardedly expensive.

lolwut? I think I paid ~$900 for a 2 year ("volume") renewal license of my Pro subscription last time. Compared with the salary of your average developer, that's not retardedly expensive, that's peanuts. Even at the full suggested retail of $1199, it's a not a bad deal for someone doing anything this side of trivial development.

Next you'll say I should be using Visual Studio instead of calling csc.exe directly

Heh, I guess that makes the case for an MSDN sub a bit weaker, but still, compared to $700 for a (dead dead dead!) VB6 license, a subscription is an incredible value :p Who's working on the C# replacement? Can you make them fix this? :)
 

GohanIYIan

Ars Legatus Legionis
10,196
Vince-RA":33ykzltm said:
Heh, I guess that makes the case for an MSDN sub a bit weaker, but still, compared to $700 for a (dead dead dead!) VB6 license, a subscription is an incredible value :p Who's working on the C# replacement? Can you make them fix this? :)

That'd be me, too. The VB and C# developers can only have meetings with the use of a mirror; I find they're rarely productive meetings.

The chief advantage of VB, in the short term, is the code's been in production use for literally thousands of hours and I know it works. The fix is indeed in the C# version. What I really want is testing time with parallel use and a known good fallback.
 

Vince-RA

Ars Praefectus
5,524
Subscriptor++
GohanIYIan":3rsecz2f said:
Vince-RA":3rsecz2f said:
Especially with an app this old (VB5? Jebus! :scared: )
There's never been a need to update before. No need to go monkeying with stuff that works just fine.

Believe me, I feel your pain - I have a couple VB6 apps fitting that description. I know it's only a matter of time before I'll be in a similar situation.
 

Paul Hill

Ars Legatus Legionis
19,890
Urh, you could port it to VB.NET with the wizard and patch that. I've had some stuff just turn into soup with that but it's also done some notbad work, the upshot is you'd have to perform a full test cycle on it which may be too much trouble. Is it a COM component? You could write a wrapper in VB.NET or C# that forwarded method calls on and patched on the way back, that way you don't need to touch the thing.
 
Status
Not open for further replies.