title: Relative Path to DLL in Platform Invoke Statement
body: <p>I am using VS 2008 to develop an application that uses a .dll with P/Invoke.  I can successfully use the dll when I use an absolute path.  For example, this DOES work:</p>
  
  <p>[DllImport("C:\\myDLL.dll")] 
          internal static extern bool isReady();</p>
  
  <p>this DOES NOT work:</p>
  
  <p>[DllImport("myDLL.dll")] 
          internal static extern bool isReady();</p>
  
  <p>I have tried adding a reference folder and adding the dll to the project folder but neither work.  I need to deploy this application on other computers and need to make sure this .dll is included.  Thanks for the help!</p>
  
  <hr>
  
  <p>I forgot to mention when I try to do that I get this error:</p>
  
  <p>Microsoft Visual Studio
  A reference to 'C:\Users\dlugokja\Documents\Visual Studio 2008\Projects\DinamapN.sln(1)\DinamapN\DinamapN\DinaWin.dll' could not be added. Please make sure that the file is accessible, and that it is a valid assembly or COM component.
  OK</p>