title: How do I reference a 32 bit DLL in a 64 bit project?
body: <p>I've got a C# 2.0 project which is set to target 'Any Cpu', however it is referencing a C++ project that's building a 32 bit dll.</p>
  
  <p>When I try to run my program on a 64bit machine I get the following error:</p>
  
  <blockquote>
    <p><code>System.BadImageFormatException</code> was
    unhandled Message: Could not load file
    or assembly <code>TreeTMHook,
    Version=1.0.2889.19619,
    Culture=neutral, PublicKeyToken=null</code>
    or one of its dependencies. An attempt
    was made to load a program with an
    incorrect format.</p>
  </blockquote>
  
  <p>How can I fix this?</p>
  
  <p><strong>Update</strong></p>
  
  <p>I want to be able to keep the main project as any cpu.</p>
  
  <p>Thanks.</p>