469,271 Members | 1,690 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,271 developers. It's quick & easy.

Porting 16 bit to 32 bit

Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!

Also, are there any "gotchas" that I need to be aware of?

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.

Edward
Jul 17 '05 #1
5 7034
Edward wrote:
Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!

Also, are there any "gotchas" that I need to be aware of?

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.

Edward


Why do your clients want an upgrade? How do they even know it's 16-bit
code?
IF it works, don't fix it.
M$ got away with pasting a 32-bit label over their 16-bit code. Try that.
There are always gotchas. If we knew what they were, they wouldn't be
gotchas ;-)
There is NO easy software port. Even if you could just recompile it
with 32-bit VB4, you'd still have to do exhaustive testing.
Fix it with marketing if at all possible.
mike

--
Bunch of stuff For Sale and Wanted at the link below.
laptops and parts Test Equipment
4in/400Wout ham linear amp.
Honda CB-125S
400cc Dirt Bike 2003 miles $550
Police Scanner, Color LCD overhead projector
Tek 2465 $800, ham radio, 30pS pulser
Tektronix Concept Books, spot welding head...
http://www.geocities.com/SiliconValley/Monitor/4710/

Jul 17 '05 #2
I agree with Mike on this one.

If you MUST convert to 32Bits no matter what however (or whichever reasons).
Make sure you have the 32bit version of all your custom third party controls
that you might have used.

If you didn't use any, all the good for your porting experience :-).

I did a port from VB4 16 to VB 4 32 and when it exports the forms, tab
orders and Z orders of the forms weren't good afterwards...

If your application makes use of any windows API functions make sure that
you change those to call their 32 bit counterparts and that all variables
getting values from the API Functions are Declared as Long isntead of
Integer like they probably are in your 16 bit version.

In my porting experience, all controls included with VB 4 16 bit should port
to their 32bvit equivalents in VB4 32 bit as it did for me. You might want
to check any grid type controls you have to make sure that went well as you
may need to redefine your column headers and bind then to any DB all over
again...

If you used Crystal reports again I'd check those two although most of your
report should still be working after the port...but just in case :-).

I think with these you should be good to go

--
Stéphane Richard
Senior Software and Technology Supervisor
http://www.totalweb-inc.com
For all your hosting and related needs
"Edward" <te********@hotmail.com> wrote in message
news:25**************************@posting.google.c om...
Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!

Also, are there any "gotchas" that I need to be aware of?

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.

Edward

Jul 17 '05 #3
On 18 Sep 2003 03:12:36 -0700, te********@hotmail.com (Edward) wrote:
Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!
VB5 or VB6 - definitely not VB4

Also, are there any "gotchas" that I need to be aware of?
Watch out for changed APIs

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.


You'll find that you land up re-writing a fair bit of it, as both VB5
and 6 have UserControls which are really useful for encapsulating
graphical things.
Jul 17 '05 #4
xyz
I have ported VB4 16-bit to VB4 and VB5 32-bit.

The VB4 32-bit is fairly straight forward. The VB5 also was fairly
straight forward but one of the functions did not work. After
extensive debugging, I found out that the VB5 compiler optimization
was the problem. When I specified no optimization everything worked
fine. Launching help files is also a problem. On XP, 2000, and NT a
shell command specifying "open" needs to be is issued, whereas on 95,
98, ME systems you need to specify "start" in the shell command. To
tell the difference in operating systems you need to use a Microsoft
SysInfo control on your initial form.

The distribution packaging program for VB5 is somewhat more robust,
and applications installed with VB5 can be uninstalled more easily
without messing up the shared libraries. The setup kit in both VB4 and
VB5 have a bug in determining the amount of free space on computers
with large disk drives. A "Long" variable is used, which is not
enough for today's machines. I had to fake it so that if the
variable overflows, I allocate the maximum value.

You may have a lot of programming and testing ahead of you.
Good luck.

xyz
On 18 Sep 2003 03:12:36 -0700, te********@hotmail.com (Edward) wrote:
Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!

Also, are there any "gotchas" that I need to be aware of?

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.

Edward


Jul 17 '05 #5
mike <sp*****@juno.com> wrote in message news:<3F************@juno.com>...
Edward wrote:
Years ago I wrote an app in VB 4.0 16 bit. The program is still
selling, but the clients want to upgrade to 32 bit. Should I go for
VB 4.0 32 bit, or version 5, or version 6? There is only a tiny
budget for this, and I don't want to do any rewrites so VB.NET is out!

Also, are there any "gotchas" that I need to be aware of?

many thanks in advance and sorry if this question has been asked and
answered before - I did a search and couldn't find anything.

Edward


Why do your clients want an upgrade? How do they even know it's 16-bit
code?
IF it works, don't fix it.
M$ got away with pasting a 32-bit label over their 16-bit code. Try that.
There are always gotchas. If we knew what they were, they wouldn't be
gotchas ;-)
There is NO easy software port. Even if you could just recompile it
with 32-bit VB4, you'd still have to do exhaustive testing.
Fix it with marketing if at all possible.
mike


They want an upgrade because they have had a number of support calls
regarding the ntvdm.exe 16 bit subsystem on XP which crashes with
illegal memory application errors. I supposed that porting to 32 bit
might remove the need to use this.

Edward
Jul 17 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Anand | last post: by
5 posts views Thread by Ryan Liu | last post: by
4 posts views Thread by Chris Travers | last post: by
34 posts views Thread by subramanian100in | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.