Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
1.44/5 (3 votes)
See more:
Hi
I have a problem in VB6 project.

I am using windows 7 64-bit. If I compile the VB6 project in 64-bit , It will run only Windows 64 bit. Some of my users are having windows 32-bit.

How can I do this compiled exe running in Windows 32-bit also.

Pls advice me

Maideen
Posted
Comments
Sergey Alexandrovich Kryukov 2-Sep-15 21:24pm    
Just forget VB6. It was already dead even when it was first introduced to the market. It's popularity among people who like to mount a dead horse only confirms this.
—SA

You can't. If you want the same executable to run on both 32- and 64-bit Windows you have to compile 32-bit only.

Your other option is to have two different executables, one for each architecture.

VB6 and below does not have the capability to running as 32-bit on 32-bit Windows and 64-bit on 64-bit Windows. You have to move up to VB.NET for that.
 
Share this answer
 
v2
The VB6 programming language can only be compiled to 32bit. There is no option to compile to 64bit.

Whether you compile on a 64 bit or 32 bit version of Windows it compiles to 32 bit. The exe created on 32 bit or 64 bit Windows will be identical.

The compiled (32bit) exe will run on both 32 bit or 64 bit Windows, and will run on Windows 7, 8 or 10.

You don't need different versions for 32 bit and 64 bit, the same version will run on both. If your compiled exe doesn't run on 32 bit PCs it is probably because your installer is faulty. What error message do you get when trying to run on 32 bit Windows ?

Microsoft say "Windows 10 is designed to run Windows 8.1 and Windows Phone 8.1 software programs. And yes, everyone’s favorite VB6 Runtime will continue to work, too."
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900