how to detect x64 vs. x86?

Richard Gaskin ambassador at fourthworld.com
Thu Sep 27 08:57:00 CDT 2012


Phil Davis wrote:
> On Windows, is there a variable / shell command / registry entry my app
> can look at to see whether the OS is 32- or 64-bit? It would be nice if
> you could do it the same way across Vista, 7, 8; but I'll settle for
> what exists.

On an exclusively 64-bit system you'll know it's 64-bit because LiveCode 
won't run. ;)

If it has 32-bit compatibility installed, what should the return value 
be for a function that asks whether the OS is 32-bit or 64-bit?

This might be a good thread for the improve list to work out syntax for 
a proposed new function.

--
  Richard Gaskin
  Fourth World
  LiveCode training and consulting: http://www.fourthworld.com
  Webzine for LiveCode developers: http://www.LiveCodeJournal.com
  Follow me on Twitter:  http://twitter.com/FourthWorldSys



More information about the use-livecode mailing list