472,796 Members | 1,331 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,796 software developers and data experts.

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 7263
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: eichin | last post by:
One of my recent projects has involved taking an accretion of sh and perl scripts and "doing them right" - making them modular, improving the error reporting, making it easier to add even more...
2
by: Anand | last post by:
Hi Are there any tools that would help in porting code from Pyton 2.3 to 2.4 ? I have gone through the whatsnew documents and created a document comparing Python 2.4 to 2.3. But so far has not...
5
by: David | last post by:
Hi everyone, I have a ActiveX EXE component written in VB6. This ActiveX EXE exposes various public methods that can be called by several other independent Windows EXE applications (also written...
5
by: Ryan Liu | last post by:
Hi All, Now I am porting CC to GCC and I have some problems. Would you mind tell me some document which have some description how to port CC to GCC ?? Thank you very much. Ryan
4
by: golu | last post by:
Has any body done the porting from oracle to sql server, what were the issues in porting the data bases? Also suggest some resources which can be helpful in the porting project TIA Golu
4
by: Chris Travers | last post by:
Hi all; A few years ago, I set about porting a PHP application from MySQL to PostgreSQL, after realizing that MySQL wasn't going to be able to handle it. In order to do this, I built a light,...
4
by: Ian | last post by:
I would like to hear from others who have considered and/or ported code from traditional C++ to C++/CLI. The class library I am considering porting to C++/CLI was written in traditional C++ with...
34
by: subramanian100in | last post by:
Is there any difference between porting and migrating. Kindly explain
5
by: shobhah | last post by:
Hi, We have a complete succsssfully working product on 32bit sparc solaris machine for which compiler used is CC 5.8 Now we are migarting our product from 32 bit to 64bit sparc solaris machine....
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.