Determining 64-bit vs. 32-bit Windows

前端 未结 3 1248
轮回少年
轮回少年 2020-12-31 09:31

I\'d like to configure visual studio 2005 to copy .dll\'s based on whether the OS is 64-bit or 32-bit during a build.

I do not want to specify what the platform targ

3条回答
  •  感情败类
    2020-12-31 10:27

    You should be able to read the environment variable %PROCESSOR_ARCHITECTURE%. Here is some great information on it.

    http://blogs.msdn.com/david.wang/archive/2006/03/26/HOWTO-Detect-Process-Bitness.aspx

提交回复
热议问题