Laurent, Thanks for your reply. Yes, you're right: the problem was that I didn't have all the new sources. When I downloaded them, it compiled fine and the example code then worked. It didn't work before with the 670-PPM-5.8 so I think the moral for anyone wanting to use Hooks is that they should get the latest sources and compile them.
Cheers, Glenn -----Original Message----- From: Laurent ROCHER [mailto:[EMAIL PROTECTED] Sent: Sunday, 11 January, 2004 08:38 To: [EMAIL PROTECTED] Cc: perl-win32-gui-users@lists.sourceforge.net Subject: Re: [perl-win32-gui-users] More on Hooks Hi, > If the perl code is correct, could this be something in my environment? > I was running perl 5.8.0 (ActiveState build 806) with Laurent's > Win32-GUI-0.0.670-PPM-5.8. I upgraded to perl 5.8.2 (808) with no > change. I then built 0.0.670 from scratch using MinGW following > Laurent's instructions. After a few hiccups, that compiled OK but Hooks > still didn't work. I then tried your latest GUI.xs but couldn't even get > that to compile. Have you compiled it with MinGW? > > Do you know if anyone else has had any success with Hooks? I have build Win32-GUI with last source code from 665-Fix CVS branch with MingW and perl 5.8.0 (ActiveState build 805). No problem for build it. I test your sample with it, and it work. I have WM_MOVE message when i move main window. Do you have take all source code from 665-Fix CVS branch or only GUI.xs ? You need all source for build it with new Hook. If you use CVS, you must specify 665-Fix branch for get last source code (cvs option : -r Win32-GUI-0_0_665-Fix). Laurent.