title: Calling .NET DLL in Inno Setup
body: <p>I'm trying to load a DLL written in C# into Inno Setup. </p>
  
  <p>Here is the code:</p>
  
  <pre class="lang-pascal prettyprint-override"><code>function Check(version, dir: String): Integer;
  external 'Check@{src}\check.dll stdcall';
  </code></pre>
  
  <p>Then I call it like <code>Check(x,y)</code></p>
  
  <p>But the DLL couldn't be loaded.</p>
  
  <p>I tried it with <code>stdcall</code> and <code>cdecl</code>.</p>
  
  <p>The <code>check.dll</code> file is along to <code>setup.exe</code>.</p>
  
  <p>Why isn't it working? </p>