title: 32 or 64 bit DLL loading from .Net managed code
body: <p>I have a unmanaged DLL (the scilexer.dll of Scintilla code editor, used by Scintilla.Net from <a href="http://www.codeplex.com/ScintillaNET" rel="noreferrer">CodePlex</a>) that is loaded from a managed application trough the Scintilla.Net component. The windows managed application runs without problem on both 32 and 64 bit environments, but I need to create different installations that uses the 64 or the 32 scilexer.dll.</p>
  
  <p>Is there a way to distribute both DLLs in 32 and 64 bit format so that the DLL loader of the .Net framework loads the unmanaged DLL in the 32 or 64 bit format depending on some .config option or some "path name magic" stuff?</p>