Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
swdev:dotnet:creating_com_library [2012/05/14 16:12]
smayr [Creating COM Library]
swdev:dotnet:creating_com_library [2012/05/16 12:40] (current)
smayr [Creating COM Library]
Line 25: Line 25:
     * ''ProgId'' convention is ''{namespace}.{class}''     * ''ProgId'' convention is ''{namespace}.{class}''
   * Activate COM and register it:   * Activate COM and register it:
-    * In Project Properties (Alt-Tab) > Application > Assembly Information, check "Make Assembly COM-Visible". Alternatively, In the folder MyLib > Properties > AssemblyInfo, set ''ComVisible'' to true. +    * In Project Properties (Alt-Enter) > Application > Assembly Information, check "Make Assembly COM-Visible". Alternatively, In the folder MyLib > Properties > AssemblyInfo, set ''ComVisible'' to true. 
-    * In Project Properties (Alt-Tab) > Build > Output, and check "Register for COM interop".+    * In Project Properties (Alt-Enter) > Build > Output, and check "Register for COM interop".
     * Build the project. This will register the COM object.     * Build the project. This will register the COM object.
     * Alternatively, manually register COM object:<code>C:\>"%Windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase MyLib.dll</code>     * Alternatively, manually register COM object:<code>C:\>"%Windir%\Microsoft.NET\Framework\v4.0.30319\regasm.exe" /codebase MyLib.dll</code>