This is generally a problem with the COM object not reporting its type back
to Python.

You need to do some manual wrapping - do a google search for
"EnsureModule" - this should point you in the right direction.

Mark.

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Kent
> Tenney
> Sent: Wednesday, 2 May 2001 8:35 AM
> To: [EMAIL PROTECTED]
> Subject: Problem with win32com.client.Dispatch
>
>
> Howdy,
>
>  I have run make_py.py, yet Dispatch doesn't return the Python
>  wrapped object. gencache.EnsureModule didn't seem to helpl.
>
>  TIA for any suggestions.
>  Thanks,
>  Kent
>
>  >>> import win32com.client
>  >>> cumulus = win32com.client.Dispatch("Cumulus5.Application")
>  >>> cumulus<COMObject Cumulus5.Application>
>
>
>  Pogo > c:\python21\win32com>dir gen_py
>   Volume in drive C is BIGSHOP        Serial number is 335C:0EFA
>   Directory of  C:\Python21\win32com\gen_py\*
>   4/29/01   1:47p        <DIR>    .
>   4/29/01   1:47p        <DIR>    ..
>   4/29/01   1:47p        133,371
> 8C025610-7F9C-11D2-A604-0000C05CF0F8x0x1x0.py
>   4/29/01   1:47p        186,598
> 8C025610-7F9C-11D2-A604-0000C05CF0F8x0x1x0.pyc
>   4/29/01   1:47p          4,315  dicts.dat
>   4/29/01   1:47p            176  __init__.py
>   4/29/01   1:47p            247  __init__.pyc
>          324,707 bytes in 5 files and 2 dirs    352,256 bytes allocated
>   25,683,181,568 bytes free
>  -- Kent Tenney, [EMAIL PROTECTED] on 05/01/2001
>
>  _______________________________________________ ActivePython
> mailing list [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/activepython
>

_______________________________________________
ActivePython mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/activepython

Reply via email to