[python-win32] Problem creating a COM from Python and then using it from another Python program

Yeo Man yeo_man007 at yahoo.com
Sat Jul 16 01:49:29 CEST 2005


I'm probably doing something very silly here, but 
I'm having trouble creating a COM from a Python 
program, and then using that COM object.  I've 
followed the steps in Chapter 5 of: 

 Python Programming on Win32

and in the article:  

http://pyzine.com/Issue007/index.html 
http://www.pyzine.com/Issue007/Section_Articles/article_PythonCOM.html?printit=1

It gives the appearance of creating the COM object, 
because when I run the script (from within 
PythonWin), I get this:  

  Registered: Nassco.TribonComDxComponent 

I can see it with REGEDIT:

  Nassco.TribonComDxComponent
     CLSID ->  (GUID from my _reg_clsid_ statement)

But when I try to run makepy (from the Tools 
menu inside the PythonWin IDE), I can't find the 
Text Library for it.  And my test program can't 
instantiate the class with a Dispatch call.  
(But that's probably because the makepy can't 
be run on it.)  

I'm probably doing something very silly here, 
but I've been looking at this for too long to 
see what that is.  
Would someone be able to give me a pointer on 
what I'm doing wrong?  

Thanks in advance.  

Johan 

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: NaComDxComponent.py
Url: http://mail.python.org/pipermail/python-win32/attachments/20050715/c6fc42bd/NaComDxComponent.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: Test_COM5_Driver_03.py
Url: http://mail.python.org/pipermail/python-win32/attachments/20050715/c6fc42bd/Test_COM5_Driver_03.diff
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: VersionInfo.PythonWin.txt
Url: http://mail.python.org/pipermail/python-win32/attachments/20050715/c6fc42bd/VersionInfo.PythonWin.txt


More information about the Python-win32 mailing list