|P is for Practical|
Text to Speech Win32::OLE Errorby TROGDOR (Scribe)
|on Nov 01, 2004 at 23:08 UTC||Need Help??|
TROGDOR has asked for the
wisdom of the Perl Monks concerning the following question:
Greetings esteemed Monks,
I'm trying to get Text to Speech working in perl on a Win32 box, but I'm running into an "Invalid class string" error. First, here are my vitals:
OS: MS Professional XP, service pack 1.
Perl: ActivePerl v5.8.4, Binary build 810
Win32-OLE: version 0.1403, installed with ppm
I'm working with the verified code from this thread. Here's the code:
When I run this code, I get the following error message:
Line 7 is the Win32::OLE->new call. This looks like a module dependency error. If I'm reading this error correctly, the OLE module is trying to instantiate a string, and the class is not defined. So I reran ppm, did a search for string, and found 111 results. I installed Set-String, but I still get this error. Is this a module dependency error, and if so, what module do I need to install to prevent this error? Is ppm smart enough to grab missing dependent modules at install time?
Thanks for your help,