判断三方库是64位还是32位
使用vs的dumpbin工具
1.dumpbin.exe /headers .\hik_camera_debug.dll 查看此文件是64还是32位
但是上述命令的输出结果信息太多
2.Get-ChildItem -Path “C:\Your\DLL\Directory” -Filter “*.dll” -Recurse | ForEach-Object {
$dllPath = $_.FullName
Write-Host “Checking: d l l P a t h " d u m p b i n / h e a d e r s " dllPath" dumpbin /headers " dllPath"dumpbin/headers"dllPath” | findstr /i “machine”
}
这样可以遍历目录下所有的dll文件,名且筛选只包含machine的行