From: Miklos Hollender Date: 2006-06-21T20:54:14+09:00 Subject: Re: Trouble with WIN32OLE obj, methods that return other obj Wow... an Excel example won't do, as I methods returning other object work just fine with Excel, but not with these objects I use. But I think the objects are not buggy, because they work in VBScript, there must just be some special kind of behaviour. My complete code is: require 'win32ole' cc2 = WIN32OLE::new 'NsComCom2.CommunicationComponent' mqba = WIN32OLE::new 'MSMQBusAdapter.MSMQBusAdapter' cc2.AddBusAdapter mqba, 1 mqba.OpenWriteQueue '.\private$\NIF' , 1 , 0 mqba.OpenReplyQueue '.\private$\NIF-REPLY' , 0 , 0 outMsg = cc2.CreateoutMessage('Message queue://.\private$\NIF') outStr = outMsg.GetStream outStr.Write("he") outMsg.Send(0) and I get an error stating outStr is a NilClass... -- Posted via http://www.ruby-forum.com/.