AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Win32/Win64 API (native code) File notification not fully works on XP
Thema durchsuchen
Ansicht
Themen-Optionen

File notification not fully works on XP

Ein Thema von user · begonnen am 13. Jul 2010 · letzter Beitrag vom 13. Jul 2010
Antwort Antwort
user

Registriert seit: 13. Jul 2010
25 Beiträge
 
Delphi 2 Desktop
 
#1

File notification not fully works on XP

  Alt 13. Jul 2010, 07:56
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.
  Mit Zitat antworten Zitat
Benutzerbild von s.h.a.r.k
s.h.a.r.k

Registriert seit: 26. Mai 2004
3.159 Beiträge
 
#2

AW: File notification not fully works on XP

  Alt 13. Jul 2010, 12:40
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

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?
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!?
»Remember, the future maintainer is the person you should be writing code for, not the compiler.« (Nick Hodges)
  Mit Zitat antworten Zitat
user

Registriert seit: 13. Jul 2010
25 Beiträge
 
Delphi 2 Desktop
 
#3

AW: File notification not fully works on XP

  Alt 13. Jul 2010, 15:12
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
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);
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
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.
  Mit Zitat antworten Zitat
Antwort Antwort


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 03:25 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