Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Will a Visual Basic 6 program run on a 64-bit machine?

I have a program built with VB6 and using some 32-bit DLL's. Will this program run on a 64-bit machine? This page suggests that it should run fine on the Windows on Windows layer, but what about the DLL's?

like image 217
john2x Avatar asked Jun 13 '11 13:06

john2x


People also ask

How do I run VBA code in 64-bit?

In Microsoft Office 2010, VBA includes language features that enable VBA code to run correctly in both 32-bit and 64-bit environments. By default, Office 2010, 2013 and 2016 install the 32-bit version. You must explicitly choose to install the 64-bit version during setup.

Is Visual Basic 6 still supported?

Microsoft Visual Basic x, and Windows 10. As detailed here, the core Visual Basic 6.0 runtime will be supported for the full lifetime of Windows operating system with which it shipped for serious regressions and critical security issues.

How do I run a Visual Basic 6 program?

Run the programPress the F5 key. On the VB menu bar, Run > Start. On the VB toolbar, click the VB Run icon (the arrow)

Can VB6 run on Windows 11?

Thanks to Microsoft, you can still run VB6 applications under Windows 11. Moreover, compatibility mode will not fail you even if Windows 11 raises its hand to play the apps.

Is Visual Studio 32-bit or 64-bit?

Visual Studio 2022 on Windows is now a 64-bit application.


2 Answers

Yes, both the VB 6 program and the DLLs will work just fine on a 64-bit version of Windows.

Since both are 32-bit, they will run under the Windows-on-Windows 64 (WoW64) subsystem, which effectively emulates a 32-bit operating system on the 64-bit versions of Windows.

I've run many such programs myself with nary a hitch.

Beyond Explorer extensions and kernel mode drivers (neither of which you've written in VB 6), any compatibility problems that you might experience are almost certainly the result of bugs in your own code, which are easily fixed upon detection. Ask more questions about that when you find them.

like image 166
Cody Gray Avatar answered Sep 22 '22 14:09

Cody Gray


Are the DLLs built with VB6 as well? Or are they native?

If you are dealing with 100% VB6, then in my experience, yes they tend to run with minimal problems (I maintained a number of plug-ins for another program that were mostly implemented as VB6 COM components, around the time that Windows 7 came out).

It will all of course depend on what libraries your code is using, whether or not you are accessing locations such as %PROGRAMFILES% etc, calling code in native libraries. These things can cause small problems but it is possible to work around them.

like image 24
mdm Avatar answered Sep 22 '22 14:09

mdm