title: How to load a COM component with certain interface from a DLL file in C#
body: <p>I have a DLL project which implements a COM interface located in a DLL &quot;Interop.SomeInterface.DLL&quot;, and it's in my project's reference.</p>
  <pre><code>using SomeInterface;
  
  namespace MyProjectNamespace
  {
      [System.Runtime.InteropServices.Guid(&quot;00000000-1111-2222-3333-4444444444&quot;), ComVisible(true)]
      public class MyDLLImplementation : SomeInterface.SomeInterface
      {
          public string GetYourImplementationName()
          {
              return &quot;myName&quot;;
          }
      } 
  </code></pre>
  <p>Now I want to build a small application to test it using late binding, (as I may need to create a good amount of DLL like this) So I will have my DLL's file path as input to my small testing application.</p>
  <p>How should I load the DLL and call the Interface function from my application? I guess the first question might be, how to get ProgID/CLSID from the DLL path?</p>