Re: [python-win32] Cannot get COM early bound

2007-05-16 Thread Stephen George
Hi Mark, Thanks for the info, I had only just inserted the error handling from the example from your book, and although it was staring me in the face I was not concentrating on that message, I was looking at the late/early binding info. I had missed supplying one argument in that method call,

Re: [python-win32] Cannot get COM early bound

2007-05-16 Thread Mark Hammond
> Greetings, > > I have been a COM expert for all of two days ;-) > > I did get a Type Mismatch error on an argument, .. the more I dug and > researched this error, the more I found out and now have a question > about early binding. > > I am trying to get access to two COM objects/interfaces <=(don

[python-win32] Cannot get COM early bound

2007-05-16 Thread Stephen George
Greetings, I have been a COM expert for all of two days ;-) I did get a Type Mismatch error on an argument, .. the more I dug and researched this error, the more I found out and now have a question about early binding. I am trying to get access to two COM objects/interfaces <=(don't know what

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Michael March
Hurray >>> mybug=bfact.Item(24) >>> mybug.Field("BG_DESCRIPTION") u'Test Set: Mercury Tours UI\nTest: [1]Welcome Page\nRun: Run_9-11_11-43-36\nSte p: Verify Tag Properties\n\nDescription:\n1. Click the "Find Next" button.\n2. V erify properties for the tag.\n\nExpected result:\n\n\nActua

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Graham Bloice
Tim Golden wrote: > Michael March wrote: >> [resend - I think the mailing list ate my last post..] > > I saw it! But no matter, the web link's useful. I imagine > Mark's hitting the sack about now (assuming he's in > Australia). It's 3pm here in the UK so I'll try to see > if I can spot what's hap

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Mark Hammond
> > printing repr(mybug) before the above line would be > interesting tho, just to > > make sure it is a makepy object - if it wasn't I could see > it happening in > > edge cases (ie, the code around ERRORS_BAD_CONTEXT in > > win32com.client.dynamic) > > >>> repr(mybug) > ' 0x18853976>' Yeah -

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Tim Golden
Michael March wrote: > [resend - I think the mailing list ate my last post..] I saw it! But no matter, the web link's useful. I imagine Mark's hitting the sack about now (assuming he's in Australia). It's 3pm here in the UK so I'll try to see if I can spot what's happening, but from a glance at th

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Michael March
[resend - I think the mailing list ate my last post..] See comments below... On 5/16/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > I'm hoping that Mark Hammond will catch sight > > of this thread and chip in. I'm guessing that > > you're seeing some odd interaction between > > the generated cla

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Michael March
See below.. On 5/16/07, Tim Golden <[EMAIL PROTECTED]> wrote: > I'm hoping that Mark Hammond will catch sight > of this thread and chip in. I'm guessing that > you're seeing some odd interaction between > the generated class/module and the COM object > properties. There's a sort of funniness where

Re: [python-win32] Error FindPerformanceAttributesByName

2007-05-16 Thread le dahut
Tim Golden wrote : > le dahut wrote: >> Hi, >> >> I'm using win32pdhutil.FindPerformanceAttributesByName in order to know >> if 'explorer.exe' is running or not. Sometimes I get this error : >> """ >>File "win32pdhutil.pyc", line 97, in FindPerformanceAttributesByName >> >>File "win32pdh

Re: [python-win32] Error FindPerformanceAttributesByName

2007-05-16 Thread Graham Bloice
Tim Golden wrote: > le dahut wrote: >> Hi, >> >> I'm using win32pdhutil.FindPerformanceAttributesByName in order to know >> if 'explorer.exe' is running or not. Sometimes I get this error : >> """ >>File "win32pdhutil.pyc", line 97, in FindPerformanceAttributesByName >> >>File "win32pdhuti

Re: [python-win32] terminateprocess, getprocessid and compiling trunk on win32

2007-05-16 Thread benjamin deboute
Hi Mark, On 5/16/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > These appear to be a reposts of the message you sent on May 11, which I also > answered on that same day (notwithstanding time zones!) > Sorry about that, but actually they were sent before and never managed to appear on the list unti

Re: [python-win32] Error FindPerformanceAttributesByName

2007-05-16 Thread Tim Golden
le dahut wrote: > Hi, > > I'm using win32pdhutil.FindPerformanceAttributesByName in order to know > if 'explorer.exe' is running or not. Sometimes I get this error : > """ >File "win32pdhutil.pyc", line 97, in FindPerformanceAttributesByName > >File "win32pdhutil.pyc", line 60, in GetPer

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Mark Hammond
> I'm hoping that Mark Hammond will catch sight > of this thread and chip in. I'm guessing that > you're seeing some odd interaction between > the generated class/module and the COM object > properties. There's a sort of funniness where > properties can be methods... or not. I'm stumped too. > >

[python-win32] Error FindPerformanceAttributesByName

2007-05-16 Thread le dahut
Hi, I'm using win32pdhutil.FindPerformanceAttributesByName in order to know if 'explorer.exe' is running or not. Sometimes I get this error : """ File "win32pdhutil.pyc", line 97, in FindPerformanceAttributesByName File "win32pdhutil.pyc", line 60, in GetPerformanceAttributes pywintypes.e

Re: [python-win32] translating VB into Python...

2007-05-16 Thread Tim Golden
I'm hoping that Mark Hammond will catch sight of this thread and chip in. I'm guessing that you're seeing some odd interaction between the generated class/module and the COM object properties. There's a sort of funniness where properties can be methods... or not. Have you generated a proxy module