
loading visual basic 3.0 applications in visual basic 5.0
Quote:
>Hai there!
>Is it possible to load an application written in visual basic 3.0 in a
>visual basic 5.0 environment?
>thanks!
The short answer is yes, but there are a lot of reasons why it could no
longer run, despite being (I'm sure) perfect in VB3.
Here are some of the problems I've had:
transmit transmit$
(difficult to forget that syntax!) but: fails utterly in VB4 onwards.
Here's something (testing for a set bit) that works in VB3, 4(16), 4(32),
but fails utterly in VB5:
If SequenceOfBits And BitToBeChecked Then Blah Blah Blah...
To make it work in VB5, I used
If SequenceOfBits And BitToBeChecked = BitToBeChecked Then Blah Blah Blah...
i.e. Blah Blah Blah *only* for True, not non-zero as before.
Maybe this is due to some hidden extra stringency in the object typing in
VB5.
I'm sure I'm in for more version fun, but you get the picture.
And these examples are drawn from code that can be left unattended to run
equipment for days; when it refused at the first fence! I was pretty
shocked, until I realised that my (and VB's)poor programming habits were
being picked out, one by one.
Anyway, it may be worth migrating through VB4, to get the 'flavour' of what
they've done to the underlying language. I've found it
Good luck,
Patrick