程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> C語言 >> C++ >> C++入門知識 >> 如何判斷windows程序是32還是64位

如何判斷windows程序是32還是64位

編輯:C++入門知識

如果安裝過VS2012的話,直接打開一個VS 2012提供的控制台窗口,比如VS2012 x64 Native Tools Command Prompt.

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


 

gdal_1.8_rtc>dumpbin /HEADERS gdal18.dll 
Microsoft (R) COFF/PE Dumper Version 11.00.60610.1 
Copyright (C) Microsoft Corporation.  All rights reserved. 
 
 
Dump of file gdal18.dll 
 
PE signature found 
 
File Type: DLL 
 
FILE HEADER VALUES 
            8664 machine (x64) 
               6 number of sections 
        52130233 time date stamp Tue Aug 20 13:44:19 2013 
               0 file pointer to symbol table 
               0 number of symbols 
              F0 size of optional header 
            2022 characteristics 
                   Executable 
                   Application can handle large (>2GB) addresses 
                   DLL 

gdal_1.8_rtc>dumpbin /HEADERS gdal18.dll
Microsoft (R) COFF/PE Dumper Version 11.00.60610.1
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file gdal18.dll

PE signature found

File Type: DLL

FILE HEADER VALUES
            8664 machine (x64)
               6 number of sections
        52130233 time date stamp Tue Aug 20 13:44:19 2013
               0 file pointer to symbol table
               0 number of symbols
              F0 size of optional header
            2022 characteristics
                   Executable
                   Application can handle large (>2GB) addresses
                   DLL

看到x64了麼? 所以這是64位的dll.

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved