Application 0x00000007 error and troubleshooting

27 Feb

Recently I was asked to build a MFC application, and it worked on my development PC, but after packaging all the dlls, the application does not run, and an error with 0x00000007 pops up.

I then opened the exe file with Dependency Walker:


Note the highlighted dll, their icons in the tree views are different from others. It might be that the 64 bit dll is needed, yet what is packaged is the 32 bit counterpart.

After changing the 32bit dll with the right 64 bit ones, now the program runs very well!


So if you encounter the same 0x00000007 error, first consider if you are using the right 32bit or 64bit executable/extension?  Also take good use of Dependency walker to make your life easier.

Leave a comment

Posted by on February 27, 2014 in MFC, Programming


Tags: , , , , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: