From: Charles Calvert Date: 2010-10-19T23:35:17+09:00 Subject: Re: How to open file dialog in Ruby, and get open FileName? :-( On Fri, 24 Sep 2010 08:45:53 -0500, iMelody Ooo wrote in : >I find an example from http://www.java2s.com , but pop error: > >main.rb:21:in `initialize': failed to create WIN32OLE object from >`MSComDlg.CommonDialog' (WIN32OLERuntimeError) > HRESULT error code:0x80040112 Most likely you don't have comdlg32.ocx installed on the box. I'd just use the raw API via comdlg32.dll instead. Here's a thread that I found on this topic: -- Charles Calvert Moderator - alt.computer.consultants.moderated Submission Address: accm@celticwolf.net Contact Address: accm_mod@celticwolf.net