ArcGIS SDK  

Add-Ins

How to set up the ESRI add-ins for VB6

The add-ins are installed after you choose the 'COM\VB\Addins' option when installing the ArcGIS Desktop Developer Kit or the ArcGIS Engine Developer Kit. In order to have access to the ESRI add-ins in Visual Basic you must first register the DLL for each add-in. Once the DLLs are registered, the add-ins will automatically show up in the Add-ins menu in Visual Basic.

To register the ESRI Add-ins for Visual Basic 6

To register all of the ESRI add-ins at once, you can simply run RegisterVBAddIns.EXE in the '\ArcGIS\DeveloperKit\Addins' folder. You can unregister all the ESRI add-ins with UnRegisterVBAddIns.EXE

To register the DLL for one specific add-in, you can use regsvr32.exe. For example, you can run

regsvr32 "\ArcGIS\DeveloperKit\Addins\VBAutomaticReferencesAddIn.dll"

Special note for the ESRI Compile and Register Add-in

When running the ESRI Compile and Register Add-in for Visual Basic, you may get an Unexpected Program Error, Error 430, Class does not support Automation or does not support expected interface. The ESRI Compile and Register Add-in relies on Windows Script Version 5.5 or above. You'll get this error if you don't have the correct version of Windows Script installed on your computer.

You can download the latest version of Windows Script from the Microsoft website (http://msdn.microsoft.com/downloads/list/webdev.asp).