title: Dll Access not Working When Switching Startup Projects
body: <p>I am currently developing a program that uses the Ghost Script DLL, by importing it as so:</p>
  
  <pre><code>[DllImport("gsdll32.dll", EntryPoint = "gsapi_init_with_args")]
  </code></pre>
  
  <p>Now, when I set the project in my solution that uses this directly (located in the directory<code>...\source\repos\uo_test_viewer\omr_scanner\omrmarkengine-master</code>) as the startup project, everything works fine. However, when I change my startup project to a project located in <code>...\source\repos\uo_test_viewer\UOTestViewer</code>, I get the following error:</p>
  
  <pre><code>The gsdll32.dll wasn't found in the default search path or is not in correct version 
  
  (doesn't expose required methods). Please download at least the version 8.64 from the original website.
  </code></pre>
  
  <p>The only thing that is being changed is that when I set the project that makes this work as the startup project, I am running it directly -- where as with the project that doesn't work, I am creating an object of the form that uses the Ghost Script implementation. Does anybody know what the issue is?</p>
  
  <p>I believe that I have provided all the necessary information, but please let me know if anything more is required. Thank you in advance for your answers!</p>