Registering COM interop


Summary
Using Visual Studio's Visual Basic (VB) upgrade wizard to auto-translate Visual Basic 6 (VB6) code to Visual Basic .NET (VB .NET) is not 100 percent automated. This topic shows how to manually correct the VB .NET project by selecting the Register for COM interop check box after the auto-translation.

About registering COM interop

ArcObjects customizations are based on the Component Object Model (COM) programming paradigm. VB6 creates native COM dynamic-link libraries (.dlls) and executables (.exes). By default, VB .NET creates native .NET managed code. The process of enabling VB .NET to create Primary Interop Assemblies (PIAs) requires selecting the Register for COM interop check box in the project.
In Visual Studio, the VB upgrade wizard does not enable the Register for COM interop option. To enable this setting, open the project's properties and select the Register for COM interop check box before compiling to create a .tlb file. See the following screen shot:


See Also:

Migrating from VB6 to VB.NET
General steps for migrating from VB6 to VB.NET




Development licensing Deployment licensing
ArcGIS for Desktop Basic ArcGIS for Desktop Basic
ArcGIS for Desktop Standard ArcGIS for Desktop Standard
ArcGIS for Desktop Advanced ArcGIS for Desktop Advanced
Engine Developer Kit Engine