Forum: Ruby Re: External application under Windows

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.
unknown (Guest)
on 2006-06-06 19:26
(Received via mailing list)
Dear Chris,

thank you for that link, it works very well - for Matlab.
However, I'd still like to know how this Program.Application
thing works in general, since I can not talk to my Gnuplot
installation (built in Cygwin) via
class Gnuplot
def initialize
  @ole = WIN32OLE.new("Gnuplot.Application")
#"Gnuplot.Application.Single"
end
end

Maybe this is a path question ? If so, how do I tell win32ole to
associate
Gnuplot.Application to C:\cygwin\usr\local\bin ?
I've tried to add this to the system variable but that didn't work
( `initialize': unknown OLE server: `Gnuplot.Application'
(WIN32OLERuntimeError).)

Thanks,
Best regards.

Axel
Chris (Guest)
on 2006-06-06 20:54
unknown wrote:
> Dear Chris,
>
> thank you for that link, it works very well - for Matlab.

Your welcome, glad it helped


> Maybe this is a path question ? If so, how do I tell win32ole to
> associate
> Gnuplot.Application to C:\cygwin\usr\local\bin ?
> I've tried to add this to the system variable but that didn't work
> ( `initialize': unknown OLE server: `Gnuplot.Application'
> (WIN32OLERuntimeError).)
>

I don't have much OLE experience, but my impression is that the app must
support OLE.  Thus, if Gnuplot supports OLE it will be recognized as an
OLE server. However, given Gnuplot is not a Windows app it probably
doesn't support OLE, but it may support command-line auotmation, since
alot of *NIX apps incorporate that ability (see
http://rgnuplot.sourceforge.net/).  You could also check for Ruby
libraries that provide similar functionality, i.e.
http://rgplot.rubyforge.org/

cheers
Chris
This topic is locked and can not be replied to.