title: Using a Delphi native dll in C# (DllImport issue)
body: <p>I'm having issues importing a Delphi native dll to .net. 
  I'm getting <em>System.EntryPointNotFoundException</em>. </p>
  
  <p><strong>Here's my delphi dll:</strong></p>
  
  <pre><code>procedure ProcedimientoEncriptar(texto,clave,resultado:PChar); export stdcall;
      var ...
      begin
      ....
      ....
      end;
  
      exports
        ProcedimientoEncriptar ;
  </code></pre>
  
  <p><strong>And here's my DllImport on .Net (C#) code:</strong></p>
  
  <pre><code>[DllImport("CryptoDLL.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Auto)]
          public static extern void ProcedimientoEncriptar([MarshalAs(UnmanagedType.LPStr)]string texto, [MarshalAs(UnmanagedType.LPStr)]string clave, [MarshalAs(UnmanagedType.LPStr)] StringBuilder resultado);
  </code></pre>
  
  <p>Any help would be appreciated,
  Diego.</p>