title: Wrap 32-bit native DLL in .NET DLL to use in 64-bit .NET application
body: <p>I have a 32-bit native DLL which I <em>dynamically load</em> and communicate with in a 32-bit .NET application. The 32-bit application is limited by .NET's 2Gb memory limit however, and so I have a 64-bit version available and I have some 64-bit native DLLs which work fine with that, but I have some DLLs which are only available to me in 32-bit.</p>
  
  <p>I've been reading around SO about various workarounds for this using COM or IPC, but wondered if the following might work:</p>
  
  <p>1 - Create an 'Any CPU' .NET DLL.
  2 - Load up the 32-bit native DLL in this .NET DLL.
  3 - Communicate directly with the .NET DLL from my 64-bit .NET app.</p>