473,385 Members | 1,655 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

win32com and name of com

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!

Jun 22 '06 #1
3 3192

"bli" <bl**@telkomsa.net> wrote in message news:11**********************@m73g2000cwd.googlegr oups.com...
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


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---
Jun 23 '06 #2
bli
Roger Upole wrote:
"bli" <bl**@telkomsa.net> wrote in message news:11**********************@m73g2000cwd.googlegr oups.com...

(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


----== Posted via Newsfeeds.Com - Unlimited-Unrestricted-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! >100,000 Newsgroups
---= East/West-Coast Server Farms - Total Privacy via Encryption =---


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!

Jun 25 '06 #3
GoD
1
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![/quote]


Hello!
would you write how did you resolve your problem with connection to dll. Im newbie in python and I have problems with connection to dll as well. If its possible to put part of your code where you make connection to dll!
thank you!
Jun 26 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Justin Stockton | last post by:
I recently upgraded from ActivePython 2.2.2 to ActivePython 2.3.2 and I'm running into an issue importing the win32com.client module. Before installing the new version, I made sure to properly...
3
by: RJ | last post by:
Hi, I've been going over the Quick Start to Client side COM and Python and many other sources, but cannot find an example that will get my com/ActiveX .ocx USB device driver imported. The Excel...
0
by: | last post by:
Hi, A month ago, I decided to move from Delphi to Python/wxPython for a good deal of my development work, and for the past few projects (which included a full re-write of our point-of-sale system)...
0
by: goermezer | last post by:
Hello, I got it ! There was an example (for Office I think) in the test-directory of Pywin32, where I have the first lines from. But this is dynamic binding. Can anybody explain this for early...
5
by: Chris | last post by:
Hi, I'm trying to figure out how to submit javascript forms using win32com in order to complete repetitive processes. The Webpage Source: (I tried to include only the important stuff)...
4
by: bytecolor | last post by:
Hi people, Using win32com on 2k SP3... >>> import win32com.client as w32c >>> fc = w32c.Dispatch('Featurecam.Application') >>> fc.InstallPath u'C:\\PROGRA~1\\FEATUR~1' >>> Using win32com...
4
by: vithi | last post by:
Hi' I am trying to launch an application. When I try like that When I try like that Excel is opening import win32com.client object = win32com.client.Dispatch("Excel.Application") object.Visible...
2
by: Ray | last post by:
Hi, I need to use cell's background color. when I record a macro from excel, it shows: Rows("7:7").Select With Selection.Interior .ColorIndex = 8 .Pattern = xlSolid
1
by: Mark Morss | last post by:
Is this the place to ask a win32com.client question? I am a unix person trying to run on windows, so I have little familiarity with this module. I have this code: import win32com.client ...
4
by: sterling | last post by:
I'm curious as to why the difference between IDLE and pythonWin when using win32com. opening an excel file, i've attempted to grab the chart information out of the file. commands like co =...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.