Newbie in win32com: getters and setters

  • Thread starter Raaijmakers, Vincent (IndSys,GE Interlogix)
  • Start date
R

Raaijmakers, Vincent (IndSys,GE Interlogix)

Newbie question.

Until now, I was able to work with all my COM objects until...
the class I want to use doesn't contain methods (attributes) but just tables:

class HelloWorld(DispatchBaseClass):
"""HelloWorld Interface"""
CLSID = IID('{95A19265-0F7F-11D3-8150-00104B2A983D}')
coclass_clsid = IID('{95A19266-0F7F-11D3-8150-00104B2A983D}')

_prop_map_get_ = {
"Hello": (8, 2, (3, 0), (), "Hello", None)
)
_prop_map_put_ = {
Hello": ((8, LCID, 4, 0),())

Now I'm lost. makepy didn't create the getters and setters, so how to get and set the values of Hello?

So I tried:
self.message = Dispatch("Messages.HelloWorld") ## works fine

##but now??

hello = self.message._prop_map_get_('Hello')
##So what is my value now?

This looks so ugly and I don't even know what my value is. I expect just one value.

Please guide me to some tips/tricks/documentations.
Google search provided me only with huge Outlook examples.

Thanks,
Vincent
 

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,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top