I'm posting this question here because I've had a lot of trouble when trying to find an answer for it - in particular, all answers on StackOverflow were not fixing the problem.
I have recently upgraded my Visual Studio 2010 32-bit project to compile for x64 as well. The compilation works without problems, but when trying to launch the application, it fails with error code 0xc000007b. Usually this happens when you forgot to upgrade your included DLLs from 32-bit to 64-bit and consequently try loading 32-bit code in your 64-bit application, but in this particular case, I only include DLLs that ship with windows, so WOW should pick the correct DLL version anyway... in theory.
ProcMon indicates that all DLLs are loaded from C:\Windows\System32, which is the correct location for 64-bit plugins. Using Dependency Walker as suggested in this StackOverflow thread is of no help either, as it thinks that all referenced DLLs are 32-bit, probably because DW itself is a 32-bit application, so when it asks for e.g. user32.dll, Windows will pick the version residing in the SysWOW64 folder.