
32/16 Bit Code Conversion
Quote:
>I want to convert some apps I have written in VB4.0 32 bit to 16 bit versions I can run under Win
>3.1. Is there a simple way to recompile the application?
Recompile with the 16 bit version of VB4. Provided you don't need to
support VB3 as well, then there are very few problems in doing this.
VB4/16 & VB4/32 are usually much closer than VB4/16 & VB3/16.
Potential Problems:
You'll need to use 16 bit OCXes, instead of 32 bit. These will either
sort themselves out (in most cases), require a new 16 bit OCX from a
third party developer, or may be impossible (the new "'95 style"
controls, like status bars and Tree Views)
If you need tabbed folders, use the SSTab (16 or 32) rather than the
MS TabStrip (32 only)
Be careful with database features. If you're using Jet 3 features,
make sure that they're supported by 16 bit databases, Jet 2.5, and
don't convert your MDB files to 32 bit format.
You may need some explicit DoEvents calls under Win16 that you didn't
need under the 32 bit OSes. If in doubt, include them - they won't
hurt under 32.
Any DLL declares will need to be replaced with 16 bit equivalents. I
assume you do have 16 bit versions of the DLLs themselves.
The Err object has changed slightly under VB4 (no implicit
clear-on-read)
--
If all it takes is an infinite number of monkeys with typewriters,
how come AOL haven't written any Shakespeare yet ?