Eradicatore has asked for the wisdom of the Perl Monks concerning the following question:

I'm getting this error when trying to run the following script:
use Win32::Sound; Win32::Sound::Volume('100%'); Win32::Sound::Play("WELCOME.WAV"); Win32::Sound::Stop();
Win32::Sound object version 0.47 does not match $Win32::Sound::VERSION 0.45 at C:/perl/lib/DynaLoade r.pm line 219.

any ideas on how to rectify this? I'm using active state perl on windows. I got to c:/perl/site/lib/win32/Sound.pm and see that it is version 0.45, so where is this version 0.47 coming from?

Justin Eltoft

"If at all god's gaze upon us falls, its with a mischievous grin, look at him" -- Dave Matthews

Title edit by tye

Replies are listed 'Best First'.
Re: silly question
by Fletch (Bishop) on Apr 07, 2002 at 00:49 UTC

    That's the version that's present in the shared library (DLL for you there in Wintendo land). Somehow you've managed to get an older version of the perl side of things (the .pm file) than the C guts that do the behind the scenes stuff (the DLL). If you've recently installed a new version of AS over an old one, you might be picking up the older module from the previous install.

    Of course I don't do Windows (and am much happier for it) so this is just a general handwaving that may wind up coinciding with the actual problem. Your Milage May Vary. Contents May Have Settled During Shipping. Lather, Rinse, Repeat.