title: Problems using methods from DLL - EntryPoints
body: <p>I need to use a DLL created in C in a C # application. I have followed several ways seen on the internet and I can not use the methods that are supposed to be in the DLL. 
  When looking for the entrypoints I get 4, which are the following.</p>
  
  <ul>
  <li>DllCanUnloadNow  </li>
  <li>llGetClassObject </li>
  <li>DllRegisterServer</li>
  <li>DllUnregisterServer</li>
  </ul>
  
  <p>I'm trying with the following code:</p>
  
  <pre><code>[DllImport("DLL.dll", EntryPoint ="DllCanUnloadNow" ,CharSet = CharSet.Auto)]
      public static extern int Open();
  
      static void Main(string[] args)
      {
          Console.WriteLine(Open());
          Console.ReadLine();
      }
  </code></pre>
  
  <p>It doesn't matter what function I use, it returns always 0.
  If I use a function called for example, asdf() I got 0.</p>
  
  <p>Does anyone know how to use the DLL correctly? I think it's made as COM and I have a .lib file.</p>
  
  <p>Thanks in advance.</p>