win32com and name of com

B

bli

hi all
first post.
I am using python to connect to dll. I have read everything I can find
on com!#@!
and tried all variations of the name of the dll to use in the Dispatch.
I get a com error-(-2147...1005, 'Invalid class string',None,None)
Do I add .Application to the name? (eg 'XXXX Control
Library.Application')
Any help appreciated?!? How do I get the info?
I have tried the gencache lines suggested in the lit. maybe I use them
wrong.
(All authors are fairly sparse on the topic using Microsoft examples
that are more self evident.)
thanks muchly!
 
R

Roger Upole

bli said:
hi all
first post.
I am using python to connect to dll. I have read everything I can find
on com!#@!
and tried all variations of the name of the dll to use in the Dispatch.
I get a com error-(-2147...1005, 'Invalid class string',None,None)
Do I add .Application to the name? (eg 'XXXX Control
Library.Application')
Any help appreciated?!? How do I get the info?
I have tried the gencache lines suggested in the lit. maybe I use them
wrong.
(All authors are fairly sparse on the topic using Microsoft examples
that are more self evident.)
thanks muchly!

Your best bet is the documentation for the application.
However, if the dll is registered correctly you can also
find the progid in the registry by searching for the dll name.

Roger
 
B

bli

Roger said:
Your best bet is the documentation for the application.
However, if the dll is registered correctly you can also
find the progid in the registry by searching for the dll name.

Roger

Thank you! Phew, over that one, now passing parameters by reference or
value!
slight gripe : there is a more extended example of VB code than Python
in Mark Hammonds
seminal Py win32 book! viva comp.lang.python viva!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,434
Messages
2,571,689
Members
48,796
Latest member
Greg L.

Latest Threads

Top