title: Running a C# Windows Forms application on Windows 7 in Parallels 8 error
body: <p>I have written a pretty simple <a href="http://en.wikipedia.org/wiki/C_Sharp_%28programming_language%29" rel="noreferrer">C#</a> <a href="http://en.wikipedia.org/wiki/Windows_Forms" rel="noreferrer">Windows Forms</a> application, and a colleague wants to test it out on Windows 7 using <a href="http://en.wikipedia.org/wiki/Parallels_Desktop_for_Mac#Version_8" rel="noreferrer">Parallels 8</a>, because he only has a Mac.</p>
  
  <p>The problem is, when he starts it up using the EXE file in the debug folder, he gets this error:</p>
  
  <blockquote>
    <p>Error starting OMAPI (Unable to load DLL 'libomapi.dll': The specified module could not be found. (Exception from HRESULT: 0x8007007E)) Check the required .dll files are present the correct versions: OmApiNet.dll libomapi.dll</p>
  </blockquote>
  
  <p>As you can see from the image below, the required DLL files are right there in the same folder, and if he takes this debug folder to a Windows PC it works fine, so it's definitely some sort of virtual machine or Parallels-specific problem.</p>
  
  <p><img src="https://i.stack.imgur.com/f3gKA.png" alt="Screenshot of error"></p>
  
  <p>How can I fix this problem? </p>
  
  <p>I haven't really used virtual machines enough to know what the problem could be...</p>