Article ID: 194843 - Last Review: March 3, 2005 - Revision: 2.3

FIX: VBScript Does Not Permit CreateObject or GetObject

This article was previously published under Q194843
Expand all | Collapse all

SYMPTOMS

VBScript displays the following error in the Developer Studio shell when you attempt to access the CreateObject or GetObject functions:
Line #: ActiveX component can't create object 'CreateObject'
However, calls to these functions sometimes succeed in certain software configurations.

STATUS

Microsoft has confirmed that this is a bug in the Microsoft products that are 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 service packs, please see the following articles in the Microsoft Knowledge Base:

194022 INFO: Visual Studio 6.0 Service Packs, What, Where, Why  (http://support.microsoft.com/kb/194022/EN-US/ )

194295 HOWTO: Tell That Visual Studio 6.0 Service Packs Are Installed  (http://support.microsoft.com/kb/194295/EN-US/ )

MORE INFORMATION

The Automation Issues topic for the Microsoft Developer Studio environment in the Visual Studio 97 Environment Readme states that some VBScript objects and procedures are not supported from VBScript macros. Among the examples of unsupported constructs, it lists the CreateObject and the GetObject functions. For additional information, please see the following article in the Microsoft Knowledge Base:

191200  (http://support.microsoft.com/kb/191200/EN-US/ ) Update Available for Window.External JScript Security Issue

Some users created macros using these functions, which executed successfully on certain software configurations, but failed on others. The fix in Service Pack 3 allows these functions to operate successfully, governed by the security settings of the object they specify.

APPLIES TO
  • Microsoft Visual J++ 1.0 Standard Edition
  • Microsoft Visual J++ 1.1 Standard Edition
  • Microsoft Visual InterDev 1.0 Standard Edition
  • Microsoft Visual C++ 5.0 Enterprise Edition
  • Microsoft Visual C++ 6.0 Enterprise Edition
  • Microsoft Visual C++ 5.0 Professional Edition
  • Microsoft Visual C++ 6.0 Professional Edition
  • Microsoft Visual C++, 32-bit Learning Edition 6.0
Keywords: 
kbbug kbfix kbide kbvs600sp3fix KB194843
 

Article Translations