FeResPost Web Site                     FeResPost Online User Manual

VI.0.1.1 Accessing the COM component in ruby

Even though FeResPost is first programmed as a ruby extension, the COM component can also be accessed from ruby language. For this, the “win32ole” ruby extension must first be required; it allows the access to all the COM components installed on the computer. Then the FeResPost component can be accessed by requiring the corresponding application:

   require ’win32ole’

   ...

   frpApp = WIN32OLE.new("FeResPost_3_4_4.Application")

In the example above, the 3.4.4 version of the FeResPost COM component was requested, and a reference is stored to this application in “frpApp” variable.