Forum: Ruby win32ole and mci.mmcontrol failure

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2006-01-05 03:45
(Received via mailing list)
Hi all,

Windows XP, SP2
Ruby 1.8.2 and 1.8.4

Why does this fail?

irb(main):001:0> require "win32ole"
=> true
irb(main):002:0> sound = WIN32OLE.new("MCI.MMControl")
WIN32OLERuntimeError: unknown OLE server: `MCI.MMControl'
    HRESULT error code:0x800401f3
      Invalid class string
        from (irb):2:in `initialize'
        from (irb):2

Thanks,

Dan
Ce60c4f78a63b0695e4dafc4bd7964f7?d=identicon&s=25 Lou Vanek (Guest)
on 2006-01-05 13:42
(Received via mailing list)
> irb
irb(main):001:0> require 'win32ole'
=> true
irb(main):002:0> sound = WIN32OLE.new("MCI.MMControl")
=> #<WIN32OLE:0x250a230>
irb(main):003:0>
 > irb -v
irb 0.9.5(05/04/13)
 > ruby -v
ruby 1.8.4 (2005-12-26) [i386-cygwin]


do you have OLE/COM Object Viewer installed (I think it comes with
Visual C++).
if not, you can get it at,
http://www.microsoft.com/windows2000/techinfo/resk...
http://www.microsoft.com/downloads/details.aspx?Fa...

Is "Microsoft MCI Control" listed under "Controls" or "Automation
Objects" in the
OLE/COM Object Viewer?

do you have mci32.ocx installed in System32 dir?
is mci32.ocx in your path?
is MCI.MMControl in your registry?
Aee77dba395ece0a04c688b05b07cd63?d=identicon&s=25 Daniel Berger (Guest)
on 2006-01-05 17:44
(Received via mailing list)
Lou Vanek wrote:
>
>
> do you have OLE/COM Object Viewer installed (I think it comes with Visual C++).
> if not, you can get it at,
> http://www.microsoft.com/windows2000/techinfo/resk...
> 
http://www.microsoft.com/downloads/details.aspx?Fa...
>
> Is "Microsoft MCI Control" listed under "Controls" or "Automation Objects" in the
> OLE/COM Object Viewer?

I don't see it.

> do you have mci32.ocx installed in System32 dir?
> is mci32.ocx in your path?
> is MCI.MMControl in your registry?

Nope.  Closest thing I've got is mciole32.dll.  Where do you get it?
I'm on Windows XP Pro, SP2 with the MS SDK and .NET stuff (cl 13).

Thanks,

Dan
Ce60c4f78a63b0695e4dafc4bd7964f7?d=identicon&s=25 Lou Vanek (Guest)
on 2006-01-05 17:44
(Received via mailing list)
i think the ocx is automatically installed with Visual C++, Visual
Basic, and
other Visual Studio programs, or you can find just the control here:

http://www.ppreview.net/Forum/topic.asp?TOPIC_ID=245
mci32.cab
This topic is locked and can not be replied to.