Answered by:

Building a 64 bit Metro App

Question

I have to develop a Metro application. This application uses a Win32 DLL project in its solution.
I am referring the Win32 dll using the DLLImport method. The solution is building and running properly when i select the configuration x86.

When i build the the Metro app for x64 configuration, there is no build issue. But when running the application, at the point of calling the Win32 dll export method, exception is occuring. It is throwing
BadImageFormat exception.