I have a new PC running Windows 7 and Visual Studio 2010, and need to register a legacy typelib (.tlb) to interface with an existing legacy application. However, regtlib.exe does not seem to be part of Windows 7 (I don't think it was part of Vista either), and regtlibv12.exe, available as part of Visual Studio 2005, seems to have disappeared.
I have a new PC running Windows 7 and Visual Studio 2010, and need to register a legacy typelib (.tlb) to interface with an existing legacy application. However, regtlib.exe does not seem to be part of Windows 7 (I don't think it was part of Vista either), and regtlibv12.exe, available as part of Visual Studio 2005, seems to have disappeared with Visual Studio 2008 (and certainly Visual Studio 2010). Microsoft forums and knowledge base articles refer to RegAsm.exe.
I've tried RegAsm.exe, but that will only create and register a typelib from an existing dll or assembly (which I do not have). I can't believe there is no way to register an existing typelib on Windows 7. Any help would be most appreciated.
See More On Stackoverflow
This document was published with and applies to ArcGIS 9.3. Nero vision portable ita chrome. A version also exists.
Summary Extending the ArcGIS applications with custom.NET components requires that the.NET classes are made available to the Component Object Model (COM) runtime by registering the components in the COM registry. The three ways to perform this task are outlined in this topic. In addition, if the component is to be used from a COM development environment, you may also want to export a type library, which is also outlined in this topic.
Do the following to use the Regasm command line utility:. If the target machine has Visual Studio installed, open the Visual Studio 2005 command prompt (the ordinary command prompt will not have the appropriate environment variables set to use this tool). If the target machine does not have Visual Studio installed but does have the.NET Framework SDK installed, use the SDK command prompt by choosing Programs, then Microsoft.NET Framework SDK v2.0. If you cannot find it, open a command prompt at the path where Regasm is located. For example, the.NET Framework 2.0 default installation path is C: Windows Microsoft.NET Framework v2.0.50727.
Type libraries for managed components A type library (.tlb) can also be exported that contains information describing the types in the assembly. You may want to generate a type library for a component if that component will be used from another development environment, such as within the Visual Basic for Applications (VBA) environment embedded with the ArcGIS applications. If you want to add custom commands and tools using the Customize dialog box within the ArcGIS applications, generate a type library.