The "problem" is that creating a COM object in Python does *not* create a
typelib.  Therefore, you are unable to run makepy for the object.  However,
simply creating the object and using it should work fine.

Mark

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> Behalf Of Yeo Man
> Sent: Saturday, 16 July 2005 9:49 AM
> To: [email protected]
> Cc: Yeo_Man at_Home
> Subject: [python-win32] Problem creating a COM from Python and then
> using itfrom another Python program
>
>
> 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
>
>

_______________________________________________
Python-win32 mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-win32

Reply via email to