title: Call C# dll from Delphi
body: <p>I composed .Net 3.5 dll with single method, which is to be called by Delphi .exe.
  Unfortunately it does not work.</p>
  
  <p>The steps:
  1. Create C# 3.5 dll with the code:</p>
  
  <pre><code>public class MyDllClass
  {
      public static int MyDllMethod(int i)
      {
          MessageBox.Show("The number is " + i.ToString());
      }
  }
  </code></pre>
  
  <ol>
  <li>Go to Assembly Properties --> Assembly Information and checked the "Make Assembly COM-Visible"</li>
  <li>Used RegAsm.exe to register my dll</li>
  </ol>
  
  <p>This throws Delphi exception which indicates it cannot connect the dll.
  What are the steps required to enabled usage of C# managed dll from unmanaged code.</p>
  
  <p>Does any one familiar with good example about the subject?</p>
  
  <p>Thank you</p>