473,324 Members | 2,541 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

win32com: interfaces <coclass_interfaces>

Hopefully a win32com guru can help me here..

if a class, generated by makepy.py has an interface defined by 'coclass_interfaces'
like:

class HelloWorld(DispatchBaseClass):
"""HelloWorld Interface"""
CLSID = IID('{96784DFF-A5F5-4C0F-AF30-28A33153FA92}')
coclass_interfaces = [ IHelloWorld, IFoo ]
how can I get the object IHelloWorld from the baseclass HelloWorld.
Again, I only see the same questions when I try to find the answer to this question in every newsgroup.
Please, who has the answer for me?

Vincent
Jul 18 '05 #1
1 1864
Once you have an instance of HelloWorld, you should be able to do something
like
win32com.client.Dispatch(helloworldinstance,result CLSID='{clsid of
IHelloWorld}')
Roger


"Raaijmakers, Vincent (IndSys,GE Interlogix)" <Vi*****************@ge.com>
wrote in message news:ma***********************************@python. org...
Hopefully a win32com guru can help me here..

if a class, generated by makepy.py has an interface defined by
'coclass_interfaces'
like:

class HelloWorld(DispatchBaseClass):
"""HelloWorld Interface"""
CLSID = IID('{96784DFF-A5F5-4C0F-AF30-28A33153FA92}')
coclass_interfaces = [ IHelloWorld, IFoo ]
how can I get the object IHelloWorld from the baseclass HelloWorld.
Again, I only see the same questions when I try to find the answer to this
question in every newsgroup.
Please, who has the answer for me?

Vincent

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
3
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel...
4
by: Matthew K Jensen | last post by:
In one of my "because I can" projects, I want to be able to see the enabled network interfaces on a machine. I have no clue as to how to do this. Any suggestions?
3
by: Peter Sparago | last post by:
(Sorry in advance for the long post.) Hi, I'm having a great deal of difficulty buiding a Python COM extension. I am using the MSHTML ActiveX control in my application but I need to interact...
0
by: goermezer | last post by:
Hello, I have some problems to automate a CAD (computer aided design) Software called CATIA V5 from Dassault Systemes. CATIA V5 has a builtin VB-Editor like Word, Excel, … and registers itself...
1
by: Tim N. van der Leeuw | last post by:
Hi, When trying to use win32com functionality with Python2.4, the interpreter often crashes! I don't know if it's a known problem already that will be fixed in an upcoming Python2.4.1...
2
by: Sibylle Koczian | last post by:
Hello, I've installed Python 2.4 and the win32 extensions, using administrator rights, under Windows XP in "C:\Programme". As this is a directory without spaces I didn't expect any problems. But...
11
by: Bill Davy | last post by:
I am trying to edit Contacts in Outlook. This is so I can transfer numbers from my address book which is an Excel spreadsheet to my mobile phone. I came across the following snippet of code which...
0
by: Ken Harvey | last post by:
I am attempting to scan a Windows Active Directory using wincom32.client and LDAP to pull a list of users and their attributes. My problem is that I am unable to get the search working: import...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.