WIN32OLE : how to get put-property types?

Hi,

I’m trying to make a generic COM web server that permits to interact
with any COM object through a web browser…

I’ve tryed first to do that using Python, but the reflexivity wasn’t
good enough (not working with COM object methods).

Ruby reflexivity works well with COM objects except with put properties.

I need to get the type of the property I want to set?

I try :

prop = obj.ole_put_methods.first
prop.params
=> []
prop.size_params
=> 1 (not coherent with previous result)
prop.return_type
=> VOID

is there a lack in win32ole reflexivity?

On Jun 11, 11:00 am, Bruno Le hyaric [email protected] wrote:

I need to get the type of the property I want to set?

is there a lack in win32ole reflexivity?

Posted viahttp://www.ruby-forum.com/

Put property has VOID return type. Since it is put property it does
not return any value.

Regards,
Bosko

Ok, thank you for your quick answers

Hello,

Bruno Le hyaric wrote:

=> VOID

is there a lack in win32ole reflexivity?

If there is a get-property corresponding to the put-property, then

obj.ole_get_methods.find {|m|
m.progid == prop.progid
}.return_type_detail

But if there isn’t corresponding get-property,
there is no way to get the type of put-property.

Regards,
Masaki S.