首先确保已经安装visual studio,然后在安装路径下搜索dumpbin.exe
进入dumpbin.exe所在的文件夹,打开终端。(直接在路径框下输入cmd,回车)
然后输入下面指令即可查询:
dumpbin.exe /headers [dll文件路径] | find "machine"
示例:
D:\VS2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86>dumpbin.exe /headers E:\zhankun\program_github\Ag_PlanAlgo\HnAlgorithm\include\HnAlgorithm3.dll |find "machine"
D:\VS2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86>dumpbin.exe /headers E:\zhankun\program_github\Ag_PlanAlgo\other_demo\GPV_pathplantool\HnAlgorithm3.dll |find "machine"
D:\VS2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86>dumpbin.exe /headers E:\zhankun\program_github\Ag_PlanAlgo\other_demo\GPV_pathplantool\HnAlgorithm2.dll |find "machine"
8664 machine (x64)
D:\VS2019\VC\Tools\MSVC\14.29.30133\bin\Hostx64\x86>dumpbin.exe /headers E:\zhankun\program_github\Ag_PlanAlgo\other_demo\GPV_pathplantool\HnAlgorithm.dll |find "machine"
14C machine (x86)
32 bit word machine