473,624 Members | 2,539 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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,No ne)
Do I add .Application to the name? (eg 'XXXX Control
Library.Applica tion')
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 3225

"bli" <bl**@telkomsa. net> wrote in message news:11******** **************@ m73g2000cwd.goo glegroups.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,No ne)
Do I add .Application to the name? (eg 'XXXX Control
Library.Applica tion')
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.goo glegroups.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.pytho n viva!

Jun 25 '06 #3
GoD
1 New Member
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.pytho n 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
5181
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 remove old version (as well as the mx libraries I had installed). I then installed the new version as a user with the Administrator role. I know I'm technically not supposed to install to a directory with a space in the name, but it worked fine for...
3
7002
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 and Word examples run fine. win32com.client.Dispatch("Excel.Application") etc., but how does one know the ("<foo>.<bar>") to type in? Excel looks only vaguely like "Excel.Application" in the com browser.
0
1809
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) I've had no problems and been very pleased with the move. We're Sage (accounting software) developers and frequently link into Line 50 using a Sage supplied COM server. In Delphi, the code to create the client and a workspace (which is required...
0
605
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 binding ? And it would be fine when the pulldown-menu in Pythonwin works to see the exposed Methods of the Type Libraries. -----------------------------------------------------------
5
6149
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) ---------------------------------------------- <SCRIPT language="JavaScript"> function mainPageOnLoad() {
4
1848
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 on XP Professional SP2...
4
17012
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 = 1 But when I try my application which is QeepIt.exe which is in the c:\ drive it is not running Any body tell me how to give path to open an exectable application in
2
9220
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
2741
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 """An Access connection""" def connect(data_source, user, pwd, mdw): connAccess = win32com.client.Dispatch(r'ADODB.Connection')
4
3607
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 = ChartObjects(1) works in pythonWin but doesn't work in IDLE. however, on both co = chartobjects(1) works just fine.
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
8341
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8490
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7174
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6112
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4084
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1489
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.