-
Richard Hartman
- PowerBuilder
- Monday, 26 January 2026 11:46 PM UTC
Is there a way to determine if you are running as 64 bit or 32 bit?
The old version was compiled as 32 bit. So registry values under HKEY_LOCAL_MACHINE were actually under
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Vyvx\Vbus\Version
Although when running as 32 bit, the key you use in code would be:
HKEY_LOCAL_MACHINE\SOFTWARE\Vyvx\Vbus\Version
and the OS would transparently add the "WOW6432Node" part.
So when running as a 64 bit compiled application, if I try to get the value from "HKEY_LOCAL_MACHINE\SOFTWARE\Vyvx\Vbus\Version" it's not found, because it's actually under the "WOW6432Node" emulation key. So if I am running as 64 bit I need to explicitly ADD the "WOW6432Node" to the path myself, so it can find the same values that the 32 bit version of the application had set.
To do this, I would need to have a way to determine whether I am being compiled as 32 bit or 64 bit.
Is there a function to check this?
(... wow. there is no tag to set for "registry")
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.