how to detect x64 vs. x86?

Phil Davis revdev at pdslabs.net
Thu Sep 27 13:24:36 EDT 2012


Wow! Lots of great answers! As usual. Thanks everyone.

Phil



On 9/27/12 7:42 AM, Mike Bonner wrote:
> Not sure this applies to all versions of windows that can be either 64 or
> 32 bit, but..
>
> It might work to see if: there is a folder "program files (x86)" (not
> positive that is the correct way to specify it, not at windows right this
> sec)
>
> If the folder is there its 64 bit, if not its 32 bit.
>
> On Thu, Sep 27, 2012 at 7:57 AM, Richard Gaskin
> <ambassador at fourthworld.com>wrote:
>
>> 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<http://twitter.com/FourthWorldSys>
>>
>> ______________________________**_________________
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/**mailman/listinfo/use-livecode<http://lists.runrev.com/mailman/listinfo/use-livecode>
>>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>

-- 
Phil Davis





More information about the use-livecode mailing list