Re: External application under Windows

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

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