Article ID: 184977 - View products that this article applies to.
This article was previously published under Q184977
When hosting the ScriptControl object in a MFC application, you may receive the following error:
The operation could not be completed because the script engine has not been initialized to a valid language.
When hosted as a control (and not just as a simple automation object), the ScriptControl object fails to initialize itself properly if the specified language is VBScript.
Here are two workarounds:
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 Microsoft Internet Explorer 5.
Steps to Reproduce Behavior
For additional information, please see the following article(s) in the Microsoft Knowledge Base:
184904For additional information, please see the following World Wide Web URL:
(https://support.microsoft.com/kb/184904/EN-US/ )FILE: MSSCPCTL.EXE Script Control Header File MSSCPCTL.H
Article ID: 184977 - Last Review: August 8, 2007 - Revision: 2.2
Retired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.