Win32 application and Error 0xC0000007b due to 64-bit DLL
<p>I'm' trying to build a C++ application with Visual Studio 2015 using OpenSSL.
The application experiences a 0xC0000007b error with the message "The application was unable to start correctly". Using Dependency walker I saw my application, built as x86, uses the X64 OpenSSL DLL (in <code>System32</code> instead of <code>SYSWOW64</code>).</p>

<p>How can i force Visual Studio to use the 32-bits DLL?</p>

<p><strong>I just added these two dependencies :</strong></p>

<pre><code>libeay32.lib
ssleay32.lib
</code></pre>

<p>And visual studio loads automatically ( or windows ? ) the 64 bits version, which gets me the 0xc0000007b error</p>

<p>Edit : Yeah, the DLL 32-bits are in the <code>SysWow64</code> too.</p>

<p>Any idea please ?</p>

<p>Thanks a lot :)</p>