473,713 Members | 2,747 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

win32com/makepy question

Just a general question.

It seems in COM late binding is something that should be avoided if possible.

Because python seems to be really good at doing thing dynamically I'm
wondering why no one has figured out how to make the functionality in
makepy fire automagically when you need it.

For example, it would be nice if you are creating an object
repeatedly(ADOD B.Recordset) that some logic would trigger whatever
makepy does to generate and cache the modules generated from the
typelib that's accessed.
It would be cool, that's all I'm saying. I'm sure the standard
response is "Why don't you write it" and maybe I will, I'm just
wondering if anyone has thought of it before and is working on it or
whatever.
--
Thomas G. Willis
http://paperbackmusic.net
Jul 18 '05 #1
1 2421

Hi,

I've been looking at the client side com stuff in __init__.py in the
client subdirectory under win32com, and some of the routines do exactly
that. Certainly DispatchWithEve nts tries to generate that, and I
thought Dispatch does before returning a late binding object.

Hope this helps,

Bob
Tom Willis wrote:
Just a general question.

It seems in COM late binding is something that should be avoided if possible.

Because python seems to be really good at doing thing dynamically I'm
wondering why no one has figured out how to make the functionality in
makepy fire automagically when you need it.

For example, it would be nice if you are creating an object
repeatedly(ADO DB.Recordset) that some logic would trigger whatever
makepy does to generate and cache the modules generated from the
typelib that's accessed.
It would be cool, that's all I'm saying. I'm sure the standard
response is "Why don't you write it" and maybe I will, I'm just
wondering if anyone has thought of it before and is working on it or
whatever.

Jul 18 '05 #2

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

Similar topics

2
3410
by: Mike Margerum | last post by:
Hi I am trying to using a COM server I built in C++. I ran GenPy on my type library and I am able to instantiate objects from the server. What I can't figure out is how to create/use Record types from my COM server. I see them defined in my generated py file as a map RecordMap = { 'FormRecord': '{F6EBBC2A-E2D5-4921-A498-EA80AE851012}', 'ICD9Record': '{FA83723F-55F6-4D17-8309-A9D323A4FD01}', 'BrandRecord':...
3
11829
by: Rebecca Taylor | last post by:
I have been working with win32com on python for 2 years now. I recently tried to modify an older script I had made which creates and excel workbook, fills it with data and then graphs the data. Nothing is working! When I try to run it I get this error: "Property '%s.%s' can not be set." % (self._username_, attr) AttributeError: Property 'Excel.Application.visible' can not be set."
0
1817
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...
1
1628
by: Tim N. van der Leeuw | last post by:
Hi, When trying to use win32com functionality with Python2.4, the interpreter often crashes! I don't know if it's a known problem already that will be fixed in an upcoming Python2.4.1 version. Basically, the problem is: makepy.py generates a (large, nearly 2mb) Python file for use with COM
6
1986
by: Chris Curvey | last post by:
I'm having one of those weeks. I have this pattern all over my code. result = conn.execute("select * from foo") while not result.EOF: doSomething() result.MoveNext()
2
2053
by: Andrew Markebo | last post by:
Hello! I am messing around with communicating between LabVIEW and Python, got it to work by a small 'fix' (grabbing the generated file, and importing it by hand) What I might want to do, is to automatically generate the data done by executing makepy.py and run by it. What I select in makepy.py is a library "LabVIEW data 7.1", I would
1
4378
by: Tim Penhey | last post by:
I am currently refraining from tearing out any more hair. I have started at a new job and I am trying to get some quick tests for some COM components that are used here. This morning I installed python 2.4.2 and pywin32-205. I have used makepy to create the stubs for the type library. >>> import win32com.client >>> s = win32com.client.gencache.GetClassForProgID("MXApi.MXSession.600")
4
3612
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.
2
10504
by: RyanN | last post by:
Greetings, I'm trying to get DispatchWithEvents() to work with HyperAccess (terminal program) without much success. I've done a bunch of searching and found some examples using IE: This works but doesn't handle the "Event Driven Functions": haObj = win32com.client.Dispatch(r"HAWin32") And so does this Internet Explorer Example:
0
8795
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8701
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,...
0
9168
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9009
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...
1
6621
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
5943
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();...
1
3155
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2510
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2103
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.