dumpbin判断windows程序是32还是64位(包括DLL)

http://blog.csdn.net/csfreebird/article/details/10105681

dumpbin /HEADERS gdal18.dll(or xxx.exe)

如果安装过VS2012的话,直接打开一个VS 2012提供的控制台窗口,比如VS2012 x64 Native Tools Command Prompt.

用下面的命令查看程序的头部信息:

[cpp] view plain copy
 
  1. gdal_1.8_rtc>dumpbin /HEADERS gdal18.dll  
  2. Microsoft (R) COFF/PE Dumper Version 11.00.60610.1  
  3. Copyright (C) Microsoft Corporation.  All rights reserved.  
  4.   
  5.   
  6. Dump of file gdal18.dll  
  7.   
  8. PE signature found  
  9.   
  10. File Type: DLL  
  11.   
  12. FILE HEADER VALUES  
  13.             8664 machine (x64)  
  14.                6 number of sections  
  15.         52130233 time date stamp Tue Aug 20 13:44:19 2013  
  16.                0 file pointer to symbol table  
  17.                0 number of symbols  
  18.               F0 size of optional header  
  19.             2022 characteristics  
  20.                    Executable  
  21.                    Application can handle large (>2GB) addresses  
  22.                    DLL  

看到x64了么? 所以这是64位的dll.

 查看程序/DLL的位数 32位 64 位 
http://2678482.blog.51cto.com/2668482/1616861

machine (x64)  -- 64 位
machine (x86)  -- 32 位

http://blog.csdn.net/cocoasprite/article/details/53257049

原文地址:https://www.cnblogs.com/findumars/p/7433777.html