title: Need to create COM DLL to use in Scripting like "Excel.Application"
body: <p>I want to create a COM DLL using VSS 2010 and need to register to Registry. My aim is I want use that created DLL like "Excel.Application", "Word.Application", "Wscript.Shell" kind-of.</p>
  
  <p>I want to create instance using CreateObject / New OleObject methods and use the same in my Scripting (VBScript or JavaScript).</p>
  
  <p>Any one help me to create a COM object and how to register it?</p>
  
  <p>I tried to create COM Object and tried to register using RegSvr32.exe. It says "dll was loaded but no entry point found. Make sure valid dll or ocx"</p>
  
  <p>Here is my code for your ref...</p>
  
  <pre><code>&lt;ComClass(ComClass1.ClassId, ComClass1.InterfaceId, ComClass1.EventsId)&gt; _
  Public Class ComClass1 
  
  Public Const ClassId As String = "b3b13b6c-6de5-47cb-ad6f-0ae5c7ce5c59"
  Public Const InterfaceId As String = "68536b50-1b47-42d5-970f-d3d34b56d681"
  Public Const EventsId As String = "413fa5c3-76fa-44d0-b753-1f3d3f52dbaf" 
  
  ' A creatable COM class must have a Public Sub New() with no parameters, 
  ' otherwise, the class  will not be
  ' registered in the COM registry and cannot be created
  ' via CreateObject.
  
  Public Sub New()
      MyBase.New()
  End Sub
  
  
  Public Sub Test1()
      Console.WriteLine("Test1....")
  End Sub
  
  End Class
  </code></pre>
  
  <p>Thanks,<br>
  Shanmugavel.C</p>