[python-win32] Re: Python-win32 Digest, Vol 53, Issue 6

2007-08-07 Thread Roger Upole
Huang Guan wrote: > I need your help on question 3 still: > > import pythoncom > from win32com.server import util > f=open('somepage.html','r') > fs=util.FileStream(f) > istream=util.wrap(fs, pythoncom.IID_IStream ) > p=ie.Document._oleobj_.QueryInterface (pythoncom.IID_IPersistStreamInit) > p.Loa

[python-win32] problem with UNICODE network paths and WNetAddConnection2

2007-08-07 Thread Shailesh Kumar
Hi, I am facing a problem with network paths which contain non-ascii characters when trying to map them. More precisely, the location contains Korean characters. location = ur'\\baton1\TestStreams\shailesh\게댜ㅕㅔ걷;어니;ㅓ' WNetAddConnection2 function expects string type as remoteName argument. A simp

Re: [python-win32] COM object Dispatch Error

2007-08-07 Thread Larry Bates
lucemia wrote: > Hi: > > I have a problem about using win32com in python. > > I am using a software called CSTStudio to do my project. > CSTStudiod could be used in VBA Script currectly to start or execute > program via COM interface, > but it crashed in python win32com. > >> h = win32com.cli

[python-win32] Getting file security access info on network

2007-08-07 Thread Thibault Ketterer
it works for me with this code import win32security,pywintypes try: filo = win32security.GetFileSecurity(path, win32security.OWNER_SECURITY_INFORMATION) sid = filo.GetSecurityDescriptorOwner() account, domain, typeco

[python-win32] Re: how to load 2 python COM DLLs in single app?

2007-08-07 Thread Yogirlie
Hi - is there a way that I can easily fix a problem: pythondll load library will not load when i start up my computer. thanks ** See what's free at http://www.aol.com. ___ Python-win32 mailing list Python-win32@p

[python-win32] One than services with perfmon.

2007-08-07 Thread Chatchai Neanudorn
Hi, I have two python services running in a machine. Each service need to has a perfmon. But when I start both service, only a lastest started service has counter in perfmon???. An additional *serious* thing is, When we have two services with two owner, only one service can star

[python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Len Remmerswaal
Hi, I am trying to apply the Siemens S7ProSim Automation object using Python. However, after running makepy my test script fails. I have done some digging into DispatchWithEvents, makepy and MSDN. It turns out that the event interface seems not to be included in the result file from makepy, wh

Re: [python-win32] Listing all processes

2007-08-07 Thread Tony Meyer
On 12/06/2007, at 8:01 AM, Michael Foord wrote: > I recently blogged about how listing all running processes is easy > with > IronPython [1]. > > This contrasts with the pywin32 solution we were using which is a > 'touch' more obscure (!) and has recently started failing on one > machine. However

[python-win32] Newbie help for PyCrust on WINDOWS XP

2007-08-07 Thread lgodio
I'm a PyCrust newbie running PyCrust on WINDOWS XP When I fire up PyCrust it works great if I enter and execute single Python statements, but the main menu FILE -> Open is grayed out. I'd appreciate any help on how to read a Python source codefile (*.py file) into PyCrust Thanks [EMAIL PROTEC

Re: [python-win32] PythonWin won't start the second time

2007-08-07 Thread Zeev B
I've uninstalled and reinstalled Pythonwin and indeed after installation the pyc is present and when Pythonwin runs the first time it overrides it. I've saved the original intpyapp.pyc and when I use it Pythonwin runs without a problem. I've compared the "working" pyc with the "non-working" one and

Re: [python-win32] Registering a Server COM to make it visible in thereference list

2007-08-07 Thread Mark Hammond
> On 7/30/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > There should be no need to create an IDL file - enough interfaces are > > exposed so that we can create the typelib directly. > > Ah, after some looking around, I see that there is > pythoncom.CreateTypeLib and CreateTypeLib2. Is this what

[python-win32] dde server creation error : [Errno 22] invalid argument

2007-08-07 Thread Bob Klahn
I've written a Python program that uses DDE. The program runs quite nicely on my XP SP2 PC. I'm using Python 2.5.1. But when a friend of mine tries to run it, he gets the subject error on the server.Create line: server = dde.CreateServer() server.Create("CC_DDE") My friend also has

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Mark Hammond
> OLE Viewer finds a second interface IS7ProSimEvents that is > made the default source makepy does not recognise > IS7ProSimEvents as an interface at all. That seems strange - for events, even non-dual interfaces should be supported. > gencache.GetClassForCLSID(clsid) returns the class with

Re: [python-win32] win32com does not recognise an Interface for events

2007-08-07 Thread Thomas Heller
>> OLE Viewer finds a second interface IS7ProSimEvents that is >> made the default source makepy does not recognise >> IS7ProSimEvents as an interface at all. > > > It would appear that makepy is excluding non-dual interfaces, and that the > integration with the 'universal' support for vtable i

[python-win32] comtypes mailing list

2007-08-07 Thread Thomas Heller
Since the number of comtypes users seems to be growing slowly, I have created a comtypes mailing list. The mailing list interface is here: http://lists.sourceforge.net/lists/listinfo/comtypes-users comtypes "homepage": http://cheeseshop.python.org/pypi/comtypes Thomas

[python-win32] Two perfmon objects for two services running on single machine.

2007-08-07 Thread Chatchai Neanudorn
Hi, I have two python services running on single machine. Each service has performance object. The problem is, when I apply user to own service and try to start a service. A service that start first can be started successfully but for a subsequence service, it cannot start because a perf