|
I use SHChangeNotifyRegister api to monitor the filesystem notification.
But I find when I copy a lot of files(>=20),The number of the posted notification: SHCNE_CREATE not equals to the number of the files. the Shell allways post about 10 SHCNE_CREATE notification, then follow a SHCNE_UPDATEITEM notification, This is not the acion I need.
Does anything wrong. But If the number of files to copy is less than 10,All is right.
How to do? help!!!
|
|
|
|
|
What value are you using for fSources?
|
|
|
|
|
(0x0001 | 0x0002 | 0x1000)
any wrong?
|
|
|
|
|
Looks fine. The shell also only has a 10-item event buffer, and may replace some events with a generic SHCNE_UPDATEDIR in case of an overflow. In short: don't depend on these notifications for any mission-critical applications.
|
|
|
|
|
SHChangeNotifyRegister(hWnd, SHCNF_ACCEPT_INTERRUPTS | SHCNF_ACCEPT_NON_INTERRUPTS | 0x1000,
SHCNE_CREATE | SHCNE_DELETE | SHCNE_RENAMEITEM | SHCNE_UPDATEITEM |
SHCNE_MKDIR | SHCNE_RMDIR | SHCNE_RENAMEFOLDER | SHCNE_UPDATEDIR |
SHCNE_NETSHARE | SHCNE_NETUNSHARE | SHCNE_FREESPACE,
WM_SHELLNOTIFY,
1, pEntry);
pEntry pointer to a special directory, such as "C:\\test"(use pidl).
|
|
|
|
|
But the explorer looks work fine, why it can do this?
Has there any method to repair this action?
|
|
|
|
|
zmnie wrote:
But the explorer looks work fine, why it can do this?
How do you know this? How can you tell that it is receiving more than 10 notifications?
|
|
|
|
|
I copy files to a folder, there are thousands files in that folder.
If flush the display of this folder, it will take mostly 2 second and cpu usage maybe nearly 100%.
But I find the cpu usage of explorer is only 10%, and last no more than 1 second, and the display is right, how do you thant about it?
|
|
|
|
|
Hi there,
I am trying to write a parser for a stream of data coming in my serial port. Does anyone know of a good article/site that gives info about writing/theory of parsing data streams.
thanks
A
|
|
|
|
|
I want to add a special icon to system image list.
but when I use Imagelist_addicon to add a special icon, it will occupy the place which other system icon used.
So improper icon is display.
How can I add a special icon to system imagelist, just like SHGetFileInfo does?
|
|
|
|
|
Hi,
The project that i worked month before is having a .mak file for building.
I don't want to use the .mak file and use normal project settings. so that i can do things as usual.
any body knows how to bring my project to normal shape, in the sense, removing the .mak file and making normal settings available..
thanx
Harinath
Harinath Reddy
HOneywell Technology Solutions Lab,
Bangalore,
India-560076
|
|
|
|
|
Try the Insert Project Into Workspace under the Project menu.
|
|
|
|
|
You have to create a new project and then add all your files to the project. There is no converter that takes a .mak and produces a .dsp.
John
|
|
|
|
|
I tried this way(creating new project).
it worked also.
thanx
Harinath
|
|
|
|
|
typedef bool (* DispatchFunc)(void *pcontext);
what does the above sentence mean?
|
|
|
|
|
A synonym of a pointer to the function
whose parameter is pcontext,
whose returned value is of type bool.
Is it right?
|
|
|
|
|
It's a function pointer named DispatchFunc, that returns a bool, and accepts a void pointer as a parameter.
|
|
|
|
|
Your declaring a pointer to a function that takes one argument of type void* and returns a bool
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
on my CTreeView i want to allow multiselection of HTREEITEM when a key ( Ctrl or Shift) is taped. I don t know how to do ? if u have idea don t hesitate
thanks
Frackasse
|
|
|
|
|
Hi,
I'm using of fax service that is in winxp on my program.
I want to show user a preview of document that wants to be send.
I took a look over msdn, and i found IFaxDocument::GeneratePreview !
It's exactly what i want but the problem is that this method is not available for new IFaxDocument interface in winxp !!!
I mean it's just available for IFaxDocument interface that is in win2000 !
Do you know any way to generate preview for fax document ?
Regards,
|
|
|
|
|
Here's the scenario:
I want to have a Property Sheet in my main app and add Property Pages from explicitly-linked DLLs. It almost works, but I get a memory leak which I'm guessing is down to state management in some way.
Does anyone know if what I'm attempting is even possible?
|
|
|
|
|
Oh yes its possible. I do it in one of my apps, although the DLL were originally dynamically linked and are now explicity linked.
I wouldn't think the mem leak would be due to state managment. Try isolating each of the DLL pages at a time and see if you can see which its most associated with. Also if you have an allocation number you can make use of the _crtBreakAlloc to break on the actual allocation if you run your program in exactly the same way.
Roger Allen
Sonork 100.10016
Were you different as a kid? Did you ever say "Ooohhh, shiny red" even once? - Paul Watson 11-February-2003
|
|
|
|
|
I've traced one of the memory leaks to the m_pOccDialogInfo pointer - it gets set up by malloc() in PreCreateDialog(), but when PostCreateDialog() is called on exit, it's NULL (and has moved from its original address, suggesting this is not the same CPropertyPage), thus the memory never gets freed.
As extra background, I'm passing a pointer to the parent CPropertySheet to the exported function, and calling AddPage() from within the DLL.
Any ideas?
|
|
|
|
|
Hi all,
As it is the first time I use doc window, I don't know how to show the child doc window by pressing a button in parent dialog. I know that in dialog mode to call a child dialog, I can use child.DoModal(), but how about a child doc window under a main dialog?
pls help
thx
|
|
|
|
|
I use CFormView as the view's base class in a MDI program. Run
the program and select File->New from the menu. Then newly
created view pops up in a strange appearance. It's extent covers
only the topleft part of the MainFrame's client area, while its window top bar is invisible just like it is in its maximized status.
Why? And how to fix it?
|
|
|
|