BUG: FIX: Failed to Mark Safe for Scripting Using Visual Basic PDWID: Q221541
|
When an ActiveX control is marked as Safe for Scripting and Safe for Initialization when packaging it using the Package and Deployment Wizard (PDW), depending on your security settings for unsafe controls, Internet Explorer may still identify the ActiveX control as unsafe, or it may display an "Object Required" error.
The ActiveX control is not marked as Safe for Scripting and Safe for Initialization in spite of choosing these options when packaging the control using the Visual Basic 6.0 Package and Deployment Wizard.
This is because the [AddToRegistry] section is missing from the INF file generated by the Visual Basic 6.0 PDW, and this section usually contains the registry entries that mark the controls as safe.
You can manually add the [AddToRegistry] section in your INF file by following the steps listed below.
[AddToRegistry]
HKLM,"SOFTWARE\Classes\CLSID\{04CD5348-D028-11D2-82A6-00C04FB9D847}\Implemented Categories\{7DD95802-9882-11CF-9FA9-00AA006C42C4}"
HKLM,"SOFTWARE\Classes\CLSID\{04CD5348-D028-11D2-82A6-00C04FB9D847}\Implemented Categories\{7DD95801-9882-11CF-9FA9-00AA006C42C4}"
Q182598 HOWTO: Implement IObjectSafety in Visual Basic Controls
http://msdn.microsoft.com/vbasic/downloads/download.asp?ID=030
Microsoft has confirmed this to be a bug in the Microsoft products listed
at the beginning of this article.
This bug was corrected in Visual Studio 6.0 Service Pack 3.
For more information about Visual Studio 6.0 Service Packs, please see the following articles in the Microsoft Knowledge Base:
Q194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why
Q194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed
Please see the following links for problems related to ActiveX Control Internet Deployment.
Q169438 PRB: ActiveX Control Does Not Display Correctly on Web Page
Q159923 HOWTO: Using Licensed ActiveX Controls in Internet Explorer
Q172991 INFO: CAB Files Distributed with Visual Basic 5.0
Q193366 INFO: CAB Files Distributed with Visual Basic 6.0
For more information, please see the MSDN Web Workshop:
http://msdn.microsoft.com/workshop/default.asp(c) Microsoft Corporation 1999, All Rights Reserved. Contributions by Joshua Lee, Microsoft Corporation.
Additional query words: ocx ActiveX Safe Security download
Keywords : kbservicepack kbActiveDocs kbActiveX kbCtrlCreate kbSDKInet100 kbVBp600bug kbSBNWorkshop kbGrpInet kbVS600sp3fix
Version : WINDOWS:6.0
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: July 21, 1999