title: DLL created in C# does not show members when referenced in Excel-VBA
body: <p>I am new to C# and am trying to create DLLs with functions that I can use in VBA.  I have created a test DLL with simple functions that work fine when referenced in another C# assembly.  I am also able to reference the DLL in VBA, and the class created by it (named FunctionsVS) appears in the object browser. </p>
  
  <p>In VBA, I have the following code snippet:</p>
  
  <pre><code>Sub Test1()
      Dim z As Integer
      Dim func As New FunctionsVS
      z = func.Add(4, 5)           
  End Sub
  </code></pre>
  
  <p>When I run this sub, I get I get an error message stating</p>
  
  <p><em>"Class not registered"</em>.  </p>
  
  <p>I have tried to register the DLL with regsvr32 but I get an error stating:</p>
  
  <p><em>The module "c:\windows\system32\functionslibframework.dll" was loaded but the entry point DllRegisterServer was not found.</em></p>
  
  <p>Any advice would be greatly appreciated.</p>
  
  <p>The C# code I used to create the DLL is:</p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  
  namespace FunctionLibVS
  {
      public class FunctionsVS
      {
          public int Add(int x, int y)
          {
              return x + y;
          }
  
          public int Multiply(int x, int y)
          {
              return x * y;
          }
      }
  }
  </code></pre>