Article ID: 170154 - Last Review: May 13, 2003 - Revision: 3.0 INFO: VB 6.0 Readme Part 10: Extensibility IssuesThis article was previously published under Q170154 On This PageSUMMARY
The information below includes the documentation and workarounds for Visual
Basic 6.0. This information can also be found in the README.htm file that
ships with Visual Basic 6.0 on the Visual Basic 6.0 CD-ROM. Please see the
REFERENCES section of this article for a list of the Microsoft Knowledge
Base articles relating to the Visual Basic 6.0 readme.
Following is a list of all parts of the readme file: Part 1. Important Issues - Please Read First! Part 2. Data Access Issues and DataBinding Tips Part 3. Control Issues Part 4. Language Issues Part 5. Samples Issues Part 6. Wizard Issues Part 7. Error Message Issues Part 8. WebClass Designer Issues Part 9. DHTML Page Designer Issues Part 10. Extensibility issues Part 11. Miscellaneous Issues Part 12. Microsoft Transaction Server (MTS) Issues Part 13. Dictionary Object Part 14. Visual Component Manager Part 15. Application Performance Manager MORE INFORMATION"Command-Line Safe" Add-In BehaviorYou can use the Load Behavior box in the Add-In Manager to control how and when an add-in loads in Visual Basic:
"The selected add-in has not been confirmed to be 'command-line safe',
and may require some user intervention (possible UI). Do you wish to
proceed?"
This occurs when you select an add-in for Command Line load behavior that was not declared by the author of the add-in to be "command line safe" when it was created. (This can be indicated with the Add-In Designer through a checkbox.) "Command-line safe" means that the add-in is registered in a way to indicate that it contains no user interfaces that require user input when Visual Basic is invoked through a command-line. A user interface can interfere with the operation of unattended processes (such as build scripts). If you don't indicate that an add-in is command-line safe (even if it is command-line safe), when a user selects your add-in and then Command Line in the Load Behavior box, they'll receive the warning message. This isn't a serious problem, but merely a warning to the user that the selected add-in might possibly contain UI elements that can pop up unexpectedly and halt their automated scripts by pausing for user input. Manually Setting Add-In Registry ValuesYou can also manually set the command-line safe flag (as well as the other values) for an add-in through the Windows registry.NOTE: You should not attempt to directly manipulate any Windows registry entries unless you are familiar with doing so. Setting an invalid registry entry can cause problems with Windows, even preventing you from being able to load Windows. In Visual Basic 6.0, the key that holds add-in information is located in: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0\Addins\<add- in.name>. For Visual Basic 6.0, the LoadBehavior DWord values are:
So, to demonstrate how to use these values to indicate that a fictitious add-in (My.Addin) is command-line safe and to have it load when Visual Basic is started by command-line, you would set the following registry values, using a tool such as RegEdit: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Visual Basic\6.0\Addins\My.Addin "FriendlyName"="A friendly name for your add-in" "Description"="This value describes the add-in" "LoadBehavior"=dword:4 "CommandLineSafe"=dword:1 Using the Add-In DesignerVisual Basic 6.0 includes a new tool, called the Add-In designer, to aid you in creating add-ins. To open it:
Add-In Designer: More Information About Specifying Satellite DLLWhen creating an add-in with the Add-In designer, you can specify a DLL on the Advanced tab. Be sure, however, to type only the name of the DLL file, and not its fully-qualified path. For example:
MyAddinName.DLL
not:
Addins\MyAddinName\MyAddinName.DLL
Localized Satellite DLLsIf you create a localized satellite DLL, you should also create a resources directory and a locale ID directory for the satellite DLL and install the DLL in the appropriate directory. The schematic for such a path is:
<AddIn Directory>\Resources\<Locale ID>\<MySatellite.DLL>
For example, a satellite DLL for the German version (Locale ID = 1031) would go into the directory:
C:\Program Files\MyAddin\Resources\1031\MyAddinName.DLL
REFERENCES
For additional information, please see the following articles in the
Microsoft Knowledge Base:
170164
(http://support.microsoft.com/kb/170164/EN-US/
)
: INFO: VB 6.0 Readme Part 1: Important Issues - Read First!
170163 (http://support.microsoft.com/kb/170163/EN-US/ ) : INFO: VB 6.0 Readme Part 2: Data Access/Databinding Issues 170162 (http://support.microsoft.com/kb/170162/EN-US/ ) : INFO: VB 6.0 Readme Part 3: Control Issues 170161 (http://support.microsoft.com/kb/170161/EN-US/ ) : INFO: VB 6.0 Readme Part 4: Language Issues 170160 (http://support.microsoft.com/kb/170160/EN-US/ ) : INFO: VB 6.0 Readme Part 5: Samples Issues 190046 (http://support.microsoft.com/kb/190046/EN-US/ ) : INFO: VB 6.0 Readme Part 6: Wizard Issues 170158 (http://support.microsoft.com/kb/170158/EN-US/ ) : INFO: VB 6.0 Readme Part 7: Error Message Issues 189539 (http://support.microsoft.com/kb/189539/EN-US/ ) : INFO: VB 6.0 Readme Part 8: WebClass Designer Issues 190249 (http://support.microsoft.com/kb/190249/EN-US/ ) : INFO: VB 6.0 Readme Part 9: DHTML Page Designer Issues 170154 (http://support.microsoft.com/kb/170154/EN-US/ ) : INFO: VB 6.0 Readme Part 10: Extensibility Issues 170157 (http://support.microsoft.com/kb/170157/EN-US/ ) : INFO: VB 6.0 Readme Part 11: Miscellaneous Issues 170156 (http://support.microsoft.com/kb/170156/EN-US/ ) : INFO: VB 6.0 Readme Part 12: Transaction Server (MTS) Issues 191792 (http://support.microsoft.com/kb/191792/EN-US/ ) : INFO: VB 6.0 Readme Part 13: Dictionary Object 191791 (http://support.microsoft.com/kb/191791/EN-US/ ) : INFO: VB 6.0 Readme Part 14: Visual Component Manager 191790 (http://support.microsoft.com/kb/191790/EN-US/ ) : INFO: VB 6.0 Readme Part 15: Application Performance Explorer | Article Translations
|
Back to the top
