re: How do FILE_FLAG_SEQUENTIAL_SCAN and FILE_FLAG_RANDOM_ACCESS affect how...
Additionally, I would have thought to permit a lock for deletion / renaming, the caller should have the ability to be granted the DELETE standard access right or the call should fail.
View Articlere: Why do Microsoft customer records use the abbreviation "cx" for customer?
@Chris B: You mean you didn't start out on a 1k (or 4k in my case) home computer in basic? You wanted as small a code a possible, so a$, b$, c$, t etc...
View Articlere: How do FILE_FLAG_SEQUENTIAL_SCAN and FILE_FLAG_RANDOM_ACCESS affect how...
If I interpret this article correctly *not* passing any flags should generally yield best results, because the "linear hopping" case is only available that way. So unless you are absolutely sure you...
View Articlere: Don't try to allocate memory until there is only x% free
As long as my program is "Program 10", I don't see what the problem is... *trollface*
View Articlere: Why do Microsoft customer records use the abbreviation "cx" for customer?
CX sounds almost like "sex" to my ears. Are the people in Redmond really taking it seriously with these abbreviations?
View Articlere: Can OANOCACHE be used for non-debug purposes?
Once again, I see a very good reason to want to ban all shell extensions, etc. from loading into my app. It is unfair to have to debug crashes or weird behavior caused by plugins when I don't even load...
View Articlere: Can OANOCACHE be used for non-debug purposes?
If the shell was designed today, would Microsoft have disallowed in-process shell extensions, only allowing out-of-process extensions? At least that way it would be harder for extensions to cause...
View Articlere: Can OANOCACHE be used for non-debug purposes?
Re the discussion about debug and checked builds at the other link: The term "checked build" is weird; it sounds like the build was checked out, whereas the non-checked build was just thrown together...
View Articlere: How do FILE_FLAG_SEQUENTIAL_SCAN and FILE_FLAG_RANDOM_ACCESS affect how...
If your program behaves differently than/from/to(*) your expectations with respect to whether it's reading a file sequentially or not, I suspect you have bigger problems to worry about. (*) probably a...
View Articlere: How do FILE_FLAG_SEQUENTIAL_SCAN and FILE_FLAG_RANDOM_ACCESS affect how...
I do not believe there to be many cases where you wouldnt know for certain that a file will be sequentially accessed. Either you are processing the whole file in one pass, or you aren't.
View Articlere: Can OANOCACHE be used for non-debug purposes?
Joshua: What would your users say when the Open/Save dialogs no longer work as they expect them to? I can think of few apps where I wouldn't want care if shell extensions didn't work. Kyle: If the...
View Articlere: Can OANOCACHE be used for non-debug purposes?
I used it ever since then (in fact I even forgot I had put it there) and I never saw any apparent problems. Light home usage, browsing, office apps, image processing... Maybe the hardware has grown so...
View Articlere: Can OANOCACHE be used for non-debug purposes?
>What would your users say when the Open/Save dialogs no longer work as they expect them to? I've had to debug a really weird bug in our app where it would behave strangely after a while, but it was...
View Articlere: Can OANOCACHE be used for non-debug purposes?
@Gabe: Let's just say I publish my app with an on/off switch for shell extensions. If someone's getting a weird crash and I'm getting nowhere, I tell them to try to reproduce with the switch thrown.
View Articlere: How do FILE_FLAG_SEQUENTIAL_SCAN and FILE_FLAG_RANDOM_ACCESS affect how...
Joseph, what if you open a file and then pass it to a third-party library to read from it? You now have no idea whether the file is processed in one pass or not, unless that library tells you what it...
View Articlere: Can OANOCACHE be used for non-debug purposes?
Jushua, I see where you're coming from, but in practice all applications would ship with the switch turned off, leaving the average user with dialogues that don't work as expected. The only effective...
View Articlere: Can OANOCACHE be used for non-debug purposes?
All crashes can be reproduced repdictably. Just demonstrate the allegedly finished product, to senior management!
View Articlere: A single-handed effort to keep the memory of $2 bills alive
@Maurits: You're lucky then, that the US coin selection is "perfect" for making change. The greedy algorithm (pay the largest value coin less than the running total) will always result in getting the...
View Articlere: Can OANOCACHE be used for non-debug purposes?
@Gabe: I think we're on to something. Finally a way to beat murphy!
View Articlere: A single-handed effort to keep the memory of $2 bills alive
@GWO: it's NP-complete, even -- it's the subset sum problem. For small values, though (which are common in real instances of this problem) it's not so bad.
View Article