S
splitDiff
Hi all-
A vendor that I work with provides an OLE inteface for scripting its
client application. I wanted to write some test scripts in Ruby, and I
figured that olegen.rb might get me a jump start.
Unfortunately, I am hitting the following error:
uninitialized constant OLEOperation_1::VT_HRESULT (NameError)
I think that this is the offending line:
ret = _setproperty(-536739838, [arg0], [VT_BSTR, VT_HRESULT])
The VT_HRESULT constant appears several places in the code generated by
olegen, so I can't avoid the call.
I tried a brute force:
VT_HRESULT=25
which got me further along in the code, but led to undefined method
errors coming from OLEProperty the next time I called that object.
Any ideas or assistance would be appreciated. Thanks
-splitDiff
A vendor that I work with provides an OLE inteface for scripting its
client application. I wanted to write some test scripts in Ruby, and I
figured that olegen.rb might get me a jump start.
Unfortunately, I am hitting the following error:
uninitialized constant OLEOperation_1::VT_HRESULT (NameError)
I think that this is the offending line:
ret = _setproperty(-536739838, [arg0], [VT_BSTR, VT_HRESULT])
The VT_HRESULT constant appears several places in the code generated by
olegen, so I can't avoid the call.
I tried a brute force:
VT_HRESULT=25
which got me further along in the code, but led to undefined method
errors coming from OLEProperty the next time I called that object.
Any ideas or assistance would be appreciated. Thanks
-splitDiff