Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>A couple of concepts; .NET Assemblies are the functional equivalent to ActiveX DLLs in the .NET langauges. .NET Classes and method can be decorated with attribute that have various meaning in different context. A .NET Assembly can be turned into a ActiveX/COM DLL (or OCX) by using various attributes to assign the correct GUIDs.</p> <p>A basic overview of setting a .NET assembly use COM is <a href="http://support.microsoft.com/kb/817248" rel="nofollow noreferrer">here</a>.</p> <p>Note that do google searches you should include VB6 .NET and COM (not ActiveX). COM generates more hits as it is the underlying technology behind the ActiveX term.</p> <p>The MSDN article I linked shows a basic COM setup for a .NET Class. The attribute here is the ComClass Attribute. </p> <pre><code>&lt;ComClass(ComClass1.ClassId, ComClass1.InterfaceId, ComClass1.EventsId)&gt; _ Public Class ComClass1 #Region "COM GUIDs" ' These GUIDs provide the COM identity for this class ' and its COM interfaces. If you change them, existing ' clients will no longer be able to access the class. Public Const ClassId As String = "6DB79AF2-F661-44AC-8458-62B06BFDD9E4" Public Const InterfaceId As String = "EDED909C-9271-4670-BA32-109AE917B1D7" Public Const EventsId As String = "17C731B8-CE61-4B5F-B114-10F3E46153AC" #End Region ' A creatable COM class must have a Public Sub New() ' without parameters. Otherwise, the class will not be ' registered in the COM registry and cannot be created ' through CreateObject. Public Sub New() MyBase.New() End Sub End Class </code></pre> <p>There are other Attributes as well that are especially useful if you trying to subsitute a .NET assembly for an existing COM DLL or OCX. Finally .NET has a lot of different wizards that help you with the tedious details.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload