WIN32OLE : how to get put-property types?

B

Bruno Le hyaric

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?
 
B

Bosko Ivanisevic

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?

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

Regards,
Bosko
 
M

Masaki Suketa

Hello,
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?

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 Suketa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top