Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > pythoncom.connect()

Reply
Thread Tools

pythoncom.connect()

 
 
John J. Lee
Guest
Posts: n/a
 
      11-21-2003
Dear,

I have problems when I get the IDispatch with pythoncom.connect().
When I called the 'Excel.Application' with it, it worked. (At least I can
see the pythoncom.connect() is working for the well-designed COM like
Excel.)
When I called my COM module which was derived from IDispatch interface,
the pythoncom.connect() issued error like
com_error: (-2147221021, 'Operation unavailable', None, None).

Was my COM module badly desinged? This COM worked well with VB.
Is there anybody who solved this kind of problems?

I alse tried using the gencache.EnsureModule() after I generate a static COM
file with makepy.
In this way, I got the member function not available errors.

Thank you.

- john



 
Reply With Quote
 
 
 
 
John J. Lee
Guest
Posts: n/a
 
      11-23-2003
"John J. Lee" <> writes:

Not another one! And there was I thinking my "J." made me safe from
namespace clashes...


> I have problems when I get the IDispatch with pythoncom.connect().
> When I called the 'Excel.Application' with it, it worked. (At least I can
> see the pythoncom.connect() is working for the well-designed COM like
> Excel.)
> When I called my COM module which was derived from IDispatch interface,
> the pythoncom.connect() issued error like
> com_error: (-2147221021, 'Operation unavailable', None, None).

[...]

Do you know about win32com.client.Dispatch and friends? Why are you
calling pythoncom.connect()?


John
 
Reply With Quote
 
 
 
 
Peter Hansen
Guest
Posts: n/a
 
      11-23-2003
"John J. Lee" wrote:
>
> "John J. Lee" <> writes:
>
> Not another one! And there was I thinking my "J." made me safe from
> namespace clashes...


Better switch to the Java approach then, Mr. com.pobox.lee.j.john ...

-Peter
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57