Getting an error when choosing the language MS Script Control 1.0 as Perl Script

In my VB 6 application, I am using Script Control 1.0

to run external scripts through my application. But while running, I get the following error.

"Error running Perl script: A script engine for the specified language can not be created."

      

I have installed ActivePerl 5.14 and the error occurs when I run the code below:

Dim perl As New ScriptControl
perl.Language = "PerlScript"

      

Any idea what the problem might be?

+3


source to share


1 answer


An error means that no matching language engine could be found.

Make sure you select PerlScript

when installing Active Perl (it is selected by default, at least in the latest version):



enter image description here

A successful installation creates a PerlScript

key under the HKEY_CLASSES_ROOT

hive. This key must have a subkey CLSID

with the CLSID of the active Script language. A component with this CLSID must be registered with the system. There is component binary in my installation C:\Perl\bin\PerlSE.dll

.

+2


source







All Articles