16Bit Applications with 32Bit VB4 Pro 
Author Message
 16Bit Applications with 32Bit VB4 Pro

I have the 32Bit version of VB4 Professional Edition. Can someone please
tell me if the EXE files I make will work on a 16 Bit platform, or is
there something I have to do first. I checked out the VB4 page at
www.microsoft.com and it said that the professional editon of VB4 can

me know how to to this.

Thanks,
Shezan.



Tue, 24 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro



: I have the 32Bit version of VB4 Professional Edition. Can someone please

: tell me if the EXE files I make will work on a 16 Bit platform, or is
: there something I have to do first. I checked out the VB4 page at
: www.microsoft.com and it said that the professional editon of VB4 can

let
: me know how to to this.
:
: Thanks,
: Shezan.
:

The Professional version of VB4.0 comes with 2 seperate compilers. One
32bit and one 16 bit version. These must be installed seperately.
If you ran setup.exe from the CD or Disk then you will have installed the
32-bit. To install the 16-bit version you must run setup16.exe.
It is this version of the compiler that you must use to create 16-bit
versions of your application.
The two versions are stored by default in differsent directories. The
32-bit is written to C:\Program Files\Microsoft Visual Basic and the
16-bit is located in C:\VB.

Hope this is of some Help.
Anthony

~~~~~~~~~~~~~~~~~~~~~~~~~~
Anthony Blurton
Psychology Department
Keele University


Tel:    UK 01782 584264
Fax:    UK 01782 583387



Tue, 24 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro

Quote:

>I have the 32Bit version of VB4 Professional Edition. Can someone please
>tell me if the EXE files I make will work on a 16 Bit platform, or is
>there something I have to do first. I checked out the VB4 page at
>www.microsoft.com and it said that the professional editon of VB4 can

>me know how to to this.

Only 16bit executables will run on a 16bit windows workstation.  You
will need vb4.0 16bit.

JD



Tue, 24 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro

Quote:

>I have the 32Bit version of VB4 Professional Edition. Can someone please
>tell me if the EXE files I make will work on a 16 Bit platform, or is
>there something I have to do first. I checked out the VB4 page at
>www.microsoft.com and it said that the professional editon of VB4 can

>me know how to to this.

You need to install the 16bit version of VB4.  You can install this safely to
the same directory as the 32bit version(that's what I did).  You use the 16bit
version to compile 16bit executables and the 32bit version to compile 32bit
executables.

Eric Rossing
Intec Company, Inc.

http://www.msen.com/~rossing



Tue, 24 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro

Quote:

> I have the 32Bit version of VB4 Professional Edition. Can someone please
> tell me if the EXE files I make will work on a 16 Bit platform, or is
> there something I have to do first. I checked out the VB4 page at
> www.microsoft.com and it said that the professional editon of VB4 can

> me know how to to this.

> Thanks,
> Shezan.

I'm in a similar situation. I didn't (couldn't) spend to much time trying to figure out how to get the vb4-32
Development Evironment to make 16-bit code. So, as far as I know, you have to install the 16-bit DE. It's
included with vb4-32 pro. The 16-bit DE runs under 95 and makes 16-bit EXEs. This may have been what Uncle
Bill at Microsoft was refering to. I even trusted the manual and installed the 16-bit DE in the same directory
as the 32-bit. I haven't had any problems, yet. Hope this helps.

Rob



Fri, 27 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro


Quote:

>I have the 32Bit version of VB4 Professional Edition. Can someone please
>tell me if the EXE files I make will work on a 16 Bit platform, or is
>there something I have to do first. I checked out the VB4 page at
>www.microsoft.com and it said that the professional editon of VB4 can

>me know how to to this.

>Thanks,
>Shezan.

Shezan,

I haven't done it, but supposedly this is the procedure (you should find it in
your documentation for VB 4.0 Pro):

1) install both versions of VB 4.0 Pro (16 bit and 32 bit) from your CD.

2) use OCX's (16 bit allows VBX's but 32 bit doesn't)

3) use OCX's that are available in both 16 bit and 32 bit formats.  The Windows
95 controls delivered with VB 4.0 (ex. toolbar, rich text box, et.) are ONLY 32
bit, so if you are serious about compiling both a 16 bit app and a 32 bit app
from the same source code, don't use those controls.

4) choose Jet 2.5/3.0 compatibility from Tools/References, because your 16
bit customers won't be able to use Jet 3.0 (it is 32 bit only)  (at setup time,
setup wizard will tell you to deliver dao2516.dll with the 16 bit app and
dao3216.dll with the 32 bit app).

5) for any declares you have of API's, use conditional logic to determine
whether 16 bit API or 32 bit API is needed.  Win32 and Win16 are reserved words
in the example below.
    #If Win32
         declare....
    #Else
         declare....
    #EndIf
Be careful. Most 32 bit API's use long and most 16 bit API's use integer. Some
even reverse the sequence of the parameters between the two versions, so check
your code and put conditional logic in wherever it is needed.  

6)  Finally, bring up the project in both versions of VB 4.0, and compile two
different exe's from the same vbp.  One 16 bit and one 32 bit.  I haven't done
this, so I don't know if there are any gotcha's from this point on.

Before you bother doing this, be aware that the 16 bit version of VB 4.0 is a
hog.  Actually, OLE is a hog all by itself.   If you know that your target
environments will have 12 MB RAM or more, you will probably be OK.  If they
will have less, then this approach isn't as terrific as MS leads you to
believe.  Keep the number of controls on a form to a relatively small number
(i.e. keep your design simple).  Otherwise, your repaints will be very slow. Or
just write your apps in VB 3.0.   16 bit applications (all that you were
able to build in VB 3.0) will run in 32 bit environments!  Sometimes better
than 32 bit apps that are relying on OLE.  OLE is slow.

Carolyn Plette



Fri, 27 Nov 1998 03:00:00 GMT  
 16Bit Applications with 32Bit VB4 Pro

Quote:

>I have the 32Bit version of VB4 Professional Edition. Can someone please
>tell me if the EXE files I make will work on a 16 Bit platform, or is
>there something I have to do first. I checked out the VB4 page at
>www.microsoft.com and it said that the professional editon of VB4 can

>me know how to to this.
>Thanks,
>Shezan.

The 32-bit EXE's will not work on a 16-bit platform.
The VB4 Pro CD comes with seperate 16-bit and 32-bit versions of VB4.  You
need to load the VB4 (16-bit) version and recreate your EXE.

Tom Hogan



Sat, 05 Dec 1998 03:00:00 GMT  
 
 [ 7 post ] 

 Relevant Pages 

1. Upgrade Problems: VB4.0/16Bit to VB4.0/32Bit

2. VB4 16bit Vs. VB4 32bit???

3. vb4 Pro 16bit vs. vb3 Pro <- speed

4. 16bit ODBC in VB4.0 (32bit)

5. VB4 16bit and VB5 32bit on same computer

6. Help - Common code for 16bit and 32bit VB Application

7. Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs

8. Help - Common code for 16bit and 32bit VB Application

9. How to make 16bit exe for Win3x under VB4/32bit in WinNT4.0

10. calling 16bit dll from 32bit application

11. Getting 16bit VB4.0 programs to interface with 32bit VC++5.0 DLLs

12. win95, vb4 pro 32bit, sybase 10, intersolv odbc, addchunk (image blobs)

 

 
Powered by phpBB® Forum Software