Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Paul Rudin
Tim Golden <[EMAIL PROTECTED]> writes: > greg wrote: >> Larry Bates wrote: >> >>> You should post this on comp.python.windows as Mark and the other >>> Windows/COM gurus hang around there a lot. >> >> I can't find any such newsgroup -- are you sure >> that's what it's called? > > I think that's wh

Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread Tim Golden
greg wrote: Larry Bates wrote: You should post this on comp.python.windows as Mark and the other Windows/COM gurus hang around there a lot. I can't find any such newsgroup -- are you sure that's what it's called? I think that's what it's called on gmane (or some other newsgroup gateway). Fr

Re: Python COM: Automatic wrap/unwrap?

2008-11-10 Thread greg
Larry Bates wrote: You should post this on comp.python.windows as Mark and the other Windows/COM gurus hang around there a lot. I can't find any such newsgroup -- are you sure that's what it's called? -- Greg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM: Automatic wrap/unwrap?

2008-11-09 Thread Larry Bates
Greg Ewing wrote: I'm creating a COM server in Python that will have one main class, with methods that create and return instances of other classes. I've found that I need to use win32com.server.util.wrap and unwrap on these objects when they pass over a COM connection. This doesn't seem very co

Re: Python COM

2008-07-29 Thread Larry Bates
[EMAIL PROTECTED] wrote: I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. How do i use those inte

Re: Python COM

2008-07-29 Thread Michel Claveau - NoSpam SVP ; merci
Re! Pywin32 can use dynamic COM server (without tlb). Therefore, I prefer to wait the return from birdprince... @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM

2008-07-29 Thread Diez B. Roggisch
M�ta-MCI (MVP) wrote: > Hi! > > Example, with Pywin32: > > import win32com.client > moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') > moncom.IAdvMethod(... > > See Pywin32 here: http://sourceforge.net/projects/pywin32/ That's not working, because the OP has a custom interface, not IDi

Re: Python COM

2008-07-29 Thread M�ta-MCI (MVP)
Hi! Example, with Pywin32: import win32com.client moncom = win32com.client.Dispatch('MyCOM1.AdvMethod') moncom.IAdvMethod(... See Pywin32 here: http://sourceforge.net/projects/pywin32/ @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM

2008-07-29 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: I have implemented a COM in C++,buy i don't know how to use this COM in python. For example: the COM's ProgID is "MyCOM1.AdvMethod".this COM have two interfaces,the default interface's name is IAdvMethod,the second interface's name is IBasicMethod. How do i use those in

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread Fuzzyman
On Mar 1, 12:47 am, Kamilche <[EMAIL PROTECTED]> wrote: > Here's a snippet of code for pythoners to enjoy. > Make the Microsoft genie speak text and dance about! Code (with pretty pictures!) to do similar things from IronPython: http://www.ironpython.info/index.php/AgentServerObjects Michael F

Re: Python COM automation - Controlling Microsoft Agent

2008-03-01 Thread M�ta-MCI (MVP)
Whaoouuu! A young newbie! Thanks... for others youngs newbies. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM iterator

2007-04-19 Thread Steve Holden
Ross Ridge wrote: > Larry Bates wrote: >> I tested in VB and by golly it works! What is odd is that this looks >> NOTHING like what we got from the docs earlier. No GetEnumerator >> method, no MoveNext method. I'm glad it works, but I'm a little >> puzzled as to why it works. > > The documentio

Re: Python COM iterator

2007-04-19 Thread Ross Ridge
Larry Bates wrote: > I tested in VB and by golly it works! What is odd is that this looks > NOTHING like what we got from the docs earlier. No GetEnumerator > method, no MoveNext method. I'm glad it works, but I'm a little > puzzled as to why it works. The documention Carsten Haese referenced e

Re: Python COM iterator

2007-04-19 Thread Carsten Haese
On Thu, 2007-04-19 at 12:49 -0400, Steve Holden wrote: > Larry Bates wrote: > > Carsten Haese wrote: > [iterative acess to COM objects] > > I tested in VB and by golly it works! What is odd is that this looks > > NOTHING like what we got from the docs earlier. No GetEnumerator > > method, no Move

Re: Python COM iterator

2007-04-19 Thread Steve Holden
Larry Bates wrote: > Carsten Haese wrote: [iterative acess to COM objects] > I tested in VB and by golly it works! What is odd is that this looks > NOTHING like what we got from the docs earlier. No GetEnumerator > method, no MoveNext method. I'm glad it works, but I'm a little > puzzled as to w

Re: Python COM iterator

2007-04-19 Thread Larry Bates
Carsten Haese wrote: >> [...] >>> On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: Does anyone know if there is a way to make a Python COM object act like a proper iterator in VB/Delphi? >> [...] > > After more googling, staring at win32com's code, and a fair bit of trial > and erro

Re: Python COM iterator

2007-04-18 Thread Carsten Haese
>[...] > > On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: > >> Does anyone know if there is a way to make a Python COM object > >> act like a proper iterator in VB/Delphi? >[...] After more googling, staring at win32com's code, and a fair bit of trial and error, I've come up with the follow

Re: Python COM iterator

2007-04-18 Thread Larry Bates
Carsten Haese wrote: > On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: >> Does anyone know if there is a way to make a Python COM object >> act like a proper iterator in VB/Delphi? > > I don't use COM, VB, or Delphi, but Google turned up these two > references: > http://msdn.microsoft.com/li

Re: Python COM iterator

2007-04-17 Thread Carsten Haese
On Tue, 2007-04-17 at 16:54 -0500, Larry Bates wrote: > Does anyone know if there is a way to make a Python COM object > act like a proper iterator in VB/Delphi? I don't use COM, VB, or Delphi, but Google turned up these two references: http://msdn.microsoft.com/library/default.asp?url=/library/en

RE: Python COM Outlook Question

2007-03-21 Thread Patrick Vrijlandt
Hi, It seems that space.Folders["DailyGoodEmails"] might be a valid expression; otherwise you might have experiment with space.GetSharedDefaultFolder() HTH, Patrick -Oorspronkelijk bericht- On Mar 21, 2:15 pm, "liam_herron" <[EMAIL PROTECTED]> wrote: > Say I want to open a shared email

Re: Python COM Outlook Question

2007-03-21 Thread kyosohma
On Mar 21, 2:15 pm, "liam_herron" <[EMAIL PROTECTED]> wrote: > Say I want to open a shared email inbox (named "DailyGoodEmails") that > is different from my default Outlook inbox, how do I specify this? > > Currently, I would do: > > s = Dispatch("Outlook.Application") > space = s.GetNameSpace("MAP

Re: Python COM called from VB/Delphi

2007-03-16 Thread Jorge Mazzonelli
Larry, It's been a while since I coded something in VB or Delphi because I'm mostly turn on Python ;) so please excuse me any mistakes I can make 8I don't have neither VB or Delphi installed on this computer) For Delphi to use an OLE/COM Object it requires a TypeLibrary that explains how to acc

Re: Python COM called from VB/Delphi

2007-03-15 Thread Gabriel Genellina
En Wed, 14 Mar 2007 21:17:12 -0300, Larry Bates <[EMAIL PROTECTED]> escribió: > I have a rather large Python class that I've converted to > a COM object. I can dispatch (using either Python or VB) > and call the methods perfectly. Now a new client wants > to call it from Delphi. Can anyone ou

Re: Python COM called from VB/Delphi

2007-03-15 Thread Michał Zaborowski
Hi, Larry Bates wrote: > I have a rather large Python class that I've converted to > a COM object. I can dispatch (using either Python or VB) > and call the methods perfectly. Now a new client wants > to call it from Delphi. Can anyone out there give me > any pointers on how that would be done.

RE: Python, COM Servers, and Multi-Threading

2005-11-07 Thread Stefan Schukat
Hi, you get best performance if you make your servers local servers, since then every interpreter runs in ist own process. If you make it an inproc server you synchronize all threads/CPUs with the GIL. Even better multithreading support you will get if you mark your server to run in an multithre

Re: Python, COM Servers, and Multi-Threading

2005-10-10 Thread Steve Holden
Carl Waldbieser wrote: > I have been considering using Python and the Reportlab library for > generating PDF reports for the back-end of a web based application. The > application runs most of its background tasks on a dedicated server that is > Windows based (Win2K or Win2k3). The program that l

Re: Python COM Class Question

2005-03-09 Thread Steve Holden
pemo wrote: I'm trying to use difflib.py from a COM aware language - and, for ease of use, I'm initially trying to get this going from VB6. I've wrappered difflib.py correctly I think, and I can now call into it and call a global method (called 'test' of course). Here's the consuming code:

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Chris
Thank you! That did the trick. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python COM Makepy Excel 9.0 error

2005-02-10 Thread Jim Sizelove
[EMAIL PROTECTED] wrote: Has anyone seen this? When I run the COM Makepy utility and choose Microsoft Excel 9.0 Object Library (1.3), I get an application error message: PythonWin: Pythonwin.exe - Application Error The instruction at "0x77fcc87" referenced memory at "0x0307a705". The memory could