Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Win32/Win64 API (native code) (https://www.delphipraxis.net/17-win32-win64-api-native-code/)
-   -   File notification not fully works on XP (https://www.delphipraxis.net/152922-file-notification-not-fully-works-xp.html)

user 13. Jul 2010 07:56

File notification not fully works on XP
 
Hi

I try a great file notification component at http://www.delphi.com.ar/vcl/ShellNotify.zip

It can catch the event when I extract any file from winzip/winrar on vista. Problem is it can not catch event from extracted file on xp.

It's so hard to debug the source code on xp because windows always send message to program (stopped at my breakpoint) therefore I can't compare the difference of program's routine between xp and vista.

Hope somebody want to try to look the source code.

Thanks.

s.h.a.r.k 13. Jul 2010 12:40

AW: File notification not fully works on XP
 
Hey,

you are sure that this code does the job on Windows XP and not only on Vista/7!? I have not seen any information about this fact. In the readme the author does not say any about compatibility :gruebel:

Where exactly is the problem!? I think you mean this method
Delphi-Quellcode:
procedure TShellNotify.WndProc(var Message: TMessage);
, right?! But where (in which line) have you set the breakpoint?
Zitat:

Zitat von user (Beitrag 1035055)
It's so hard to debug the source code on xp because windows always send message to program (stopped at my breakpoint)...

Do you mean that windows xp always sends a WM_SHELLNOTIFY message?! And Visty/7 not!?

user 13. Jul 2010 15:12

AW: File notification not fully works on XP
 
Zitat:

Zitat von s.h.a.r.k (Beitrag 1035113)
Hey,

you are sure that this code does the job on Windows XP and not only on Vista/7!? I have not seen any information about this fact. In the readme the author does not say any about compatibility :gruebel:

The code works in my XP and Vista. On XP it can't catch created event of extracted file.

Code:
lbEvents.Items.Add('A nonfolder item has been created ' + Path1);
Zitat:

Zitat von s.h.a.r.k (Beitrag 1035113)
Where exactly is the problem!? I think you mean this method procedure TShellNotify.WndProc(var Message: TMessage); , right?! But where (in which line) have you set the breakpoint?

Right. I set breakpoint at
Code:
if Message.Msg = WM_SHELLNOTIFY Then
Zitat:

Zitat von s.h.a.r.k (Beitrag 1035113)
Do you mean that windows xp always sends a WM_SHELLNOTIFY message?! And Visty/7 not!?

Yes. Every time I touch Windows Explorer, the breakpoint stop :?

I am not sure what I am doing, so I ask for some suggestion here.

Thanks.


Alle Zeitangaben in WEZ +1. Es ist jetzt 01:09 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz