LoginSignup
39
38

More than 5 years have passed since last update.

EXE、DLLが32bitなのか64ビットなのか確認する方法

Last updated at Posted at 2017-03-03

先日、EXE実行時にBadImageFormatExceptionでEXEが落ちた。
原因がEXE、DLLに32bit、64bitモジュールが混在しているときに発生するらしいので、その調査方法をメモ

1.タスクマネージャで確認

起動ができる場合、タスクマネージャに表示される。

タスクマネージャ.png

2.VisualStudioのツールで確認

DLL、起動しないEXEはこちらで確認する。

『Visual Studio 2005 コマンドプロンプト』で下記のコマンドを実行(通常のコマンドプロンプトではない)
dumpbin /headers "確認するファイルパス" | findstr machine

VSツール0.png

VSツール1.png

VSツール2.png

39
38
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
39
38