how to detect OS architecture?

Jacob Carlborg doob at me.com
Mon Dec 16 07:04:07 PST 2013


On 2013-12-16 11:53, Hugo Florentino wrote:
> Hi,
>
> I am writing a launcher to make a Windows application portable, but
> since this application supports both x86 and x86_64, I would like to
> detect the architecture of the OS my launcher is being run on, in order
> to launch the proper executable.

The easiest would be: if you launcher is built for 64bit, pick the 64bit 
application, otherwise pick the 32bit application.

-- 
/Jacob Carlborg


More information about the Digitalmars-d-learn mailing list