From: Masaki Suketa Date: 2007-12-03T08:31:35+09:00 Subject: Re: WIN32OLE - problem with argv Hello, Rainer wrote: > Here's my little program: > > ----- > require "win32ole" > one = WIN32OLE.new("onenote.application") > > class ON_CONST > end > WIN32OLE.const_load(one, ON_CONST) > > a_string = '' > > one.GetHierarchy(nil,ON_CONST::HsPages,a_string) I have not used OneNote 2007, so I'm not sure, but could you try to use empty string (="") instead of nil as 1st argument? one.GetHierarchy("",ON_CONST::HsPages,a_string) Regards, Masaki Suketa