Visual studio compiles 32 bit application but links to 64 bit windows libraries. How to use 32 bit libraries instead?
I'm using visual studio 2013, and trying to build a 32 bit application that will run on older 32 bit lab machines running windows 7, and eventually newer 64 bit lab machines that will be running 64 bit windows 10. The machine I have to develop with right now is a 64 bit windows 7.
I've cloned our repo and I built the project without issue, but when I try to run it, I get an error about a library or it's dependencies not being 32 bit windows applications. I've determined that all of our C# projects are configured to run as Win32, and all the C++ projects are configured to run as x86, but this does not resolve the error.
I tried opening up the executable using a dependency walker program. I couldn't execute it, so I couldn't see DLLs that get loaded during normal execution, including the ones we produce, but I did notice that our application was 32 bit, but all the Windows DLLs are 64 bit, which seems like it would be a problem.
I opened our DLLs as well and ran into the same situation. The DLL was built as 32 bit, but all the windows libraries were 64 bit.
Am I correct in my understanding that this is a problem, and how can I change the solution to use 32 bit windows libraries?