[python-win32] How to Impletments COM Interface: IInternetProtocol

2007-05-23 Thread Zhao Dapu
Hi, all I want to implements an Asynchronous Pluggable Protocol handler, which can handle a custom protocol like "http" or "mk". Follow the instruction of MSDN, I must Implements at least 3 interfaces: IInternetProtocol, IInternetProtocolRoot and IClassFactory. But I'm not clear how to do this and

Re: [python-win32] error on shell.SHChangeNotify

2007-05-23 Thread TK Soh
On 5/22/07, Roger Upole <[EMAIL PROTECTED]> wrote: > Try a newer build of pywin32. There was a bug in some older versions > regarding how the function determined whether it needed a file path > or an id list. BTW, any idea which versions of pywin32 have the bug, or which version has the fix? Just

Re: [python-win32] How to Impletments COM Interface: IInternetProtocol

2007-05-23 Thread Zhao Dapu
Hi, Steve, Thank you for your information. I've read chapter 12 in detail, some concepts are clear. But I still don't get it. Maybe I miss something. 1. I need to make a COM server. In the book, it just told how to implements user-defined interfaces. How do I implement some system interfaces, lik

[python-win32] Python Programmming on win32 - the book

2007-05-23 Thread Stephen George
Hi, I was considering buying Python Programming On Win32 which was written in 2000. I hate to buy out of date books. I'd like to ask if the contents of this book are still relevant in 2007 and recent releases of Python. Will this book continue to be relevant for a number of years to come? Are

Re: [python-win32] error on shell.SHChangeNotify

2007-05-23 Thread Mark Hammond
> On 5/22/07, Roger Upole <[EMAIL PROTECTED]> wrote: > > Try a newer build of pywin32. There was a bug in some > older versions > > regarding how the function determined whether it needed a file path > > or an id list. > > BTW, any idea which versions of pywin32 have the bug, or which version >

Re: [python-win32] Python Programmming on win32 - the book

2007-05-23 Thread Mark Hammond
> Hi, > > I was considering buying > Python Programming On Win32 which was written in 2000. > > I hate to buy out of date books. > > I'd like to ask if the contents of this book are still > relevant in 2007 > and recent releases of Python. Yep - some things have changed, but the concepts are all s

Re: [python-win32] How to Impletments COM Interface:IInternetProtocol

2007-05-23 Thread Mark Hammond
> 1. I need to make a COM server. In the book, it just told how to > implements user-defined interfaces. How do I implement some system > interfaces, like IInternetProtocol. I supposed if there is a wrap > class of the interfaces, I can just inherit the class. The code maybe > like this: > > class

Re: [python-win32] HookMessage fails

2007-05-23 Thread TK Soh
On 5/15/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > > This is the magic of MFC - if no parent is specified, the > > "main window" for > > > the application is automatically used. > > > > > > > Isn't that the issue, then? He's writing a dialog to plug in to > > Explorer, and every time he runs,

Re: [python-win32] HookMessage fails

2007-05-23 Thread Mark Hammond
I think the problem is likely related to the "main frame" issue quoted below. I suggest you debug what the app's "main frame" is at any given point in time, and confirming the value is still appropriate. Mark > On 5/15/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > > > This is the magic of MF

Re: [python-win32] HookMessage fails

2007-05-23 Thread TK Soh
On 5/23/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > I think the problem is likely related to the "main frame" issue quoted below. > I suggest you debug what the app's "main frame" is at any given point in > time, and confirming the value is still appropriate. Being new to pywin32, I'm not sur

Re: [python-win32] Python Programmming on win32 - the book

2007-05-23 Thread TK Soh
On 5/23/07, Mark Hammond <[EMAIL PROTECTED]> wrote: > > Will this book continue to be relevant for a number of years to come? > > > > Are there any plans for a 2nd Edition in the next 6 months or so? > > I'm afraid that I've been messing poor John around for many months now. I'd > like to think a