But oign into the registry, will be the same as doing it through the explorer... And I would like not to deactivate the sounds for the operating system. Just when im executing my app. Because when Im testing things (the error messages that the user will have when something goes wrong) the sounds nerve me. I check ALL the errors that the user can have. So... that's the reason for just a piece of code inside my app.
I can disable them by starting app, and enable them another time by going out the app.
If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?
Help me to understand what I'm saying, and I'll explain it better to you
But oign into the registry, will be the same as doing it through the explorer...
Not really - you can programmatically alter the registry.
Regardless, I tried messing with this, and while my registry entries cause the sound settings
for my app to appear nicely in the "Sounds" control panel applet, the system (XP SP2) does
NOT use my settings when running the application
Please let me know if you find a solution - I will do the same
Iam involved in internationalization of my product.
Iam loading japanese resource dll for that.
I have an excel file which containg japanese strings.
while i copy the string from excel file to string table, it is not taking japanese strings ( just pasting ???????? ).
iam using windows 2000 server.
i selected japanese in Regional settings.
if i type anything in string table properties entry, then it is in japanese but anything copying from my japanese excel still showing junk only.
Is there any way to determine the number of files and directories on a given volume without having to resort to the find file api's?
I'm using the FindFirst FindNext api's to iterate every file on the volume, for each file I then perform a few tasks. The whole process could take anywhere between 10 seconds and 10 minutes to complete. So I need to display the progress to the user. The trouble is I have nothing to base this progress on. If I had the total number of files before hand, I could compare this to the current and display it on a progress bar.
Well, I think that it is not possible to get the file/folder count.
But the thing that is possible is the used space.
You can use that for showing the progress.
Every time you handle a file, subtract the file size from the Total size.
Though the progress will not smooth, but atleast the user can have some idea, how long the process will take.
Here's a way-out-in-left-field idea. Start a secondary thread that does nothing but count files. After it has been running for a few seconds, then commence to processing the files. After each file is processed, update the progress indicator. This will fluctuate at first, but will eventually smooth out once the secondary thread has counted all of the files. Make sense?
"A good athlete is the result of a good and worthy opponent." - David Crow
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
It seems like that would be the only visualy pleasing method of doing this.
Through test I have found that a bare bone file count takes between 5 and 10 seconds ( on my 22GB of used space, bloated to the depths of hell with nothing but windows Vis-I'm gonna make you spend money-ta log files, C drive ).
I could also implement the Used space count, which as you stated is a lot higher than what is accessable. This way the progress would have a meaningful start and when the second thread has finished, the actual file count could be used as a completion. I will have to test this but I really doubt there would be any noticable effects, especially on vlumes with a high file count.
Last Visit: 31-Dec-99 18:00 Last Update: 25-Sep-23 7:57