Apr 30, 2014
Post comments count0
Post likes count1
A customer (via the customer liaison) discovered that even though they had set the policy, they found "if the user creates a Notepad file, the file is searched in the user's HOME directory, in contradiction of policy,"
I asked the liaison to confirm: "The steps you describe are rather vague. Are you saying that the problem occurs when the user ...
Apr 29, 2014
Post comments count0
Post likes count2
When you call , the common file save dialog will ask the user to choose a file name, and just before it returns it does a little create/delete dance where it creates the file the user entered, and then deletes it. What's up with that?
This is a leftover from the ancient days of 16-bit Windows 3.1, back when file systems were real file systems...
Apr 28, 2014
Post comments count0
Post likes count1
Today's Little Program shows a balloon tip at a specific position,
then manually removes it.
Start with our
scratch program
and make these changes:
When our main window is created, we also create a balloon-style
tooltip and add a tracking tool.
Normally, the tooltip control appears and disappears automatically,
at a position of the tooltip's ...
Apr 25, 2014
Post comments count0
Post likes count1
Commenter Cherry wonders
who invented all those strange syntaxes,
like to show all environment variables,
including the hidden ones.
An interesting historical note is
the origin of the convention in unix that files whose names begin with a
dot are hidden by default
(here's the relevant portion).
That article highlights how a discovered quirk
...
Apr 24, 2014
Post comments count0
Post likes count1
Simon Cooke dug back into his memory and asked, "Doesn't calling with cause a recreate and re-apply of the styles?"
The flag does not recreate anything, but it does reapply the styles, as far as it knows.
Recall that the bits in the window style break into two parts. There are the styles managed by the window manager, which are in the upper ...
Apr 23, 2014
Post comments count0
Post likes count1
A corporate customer had a problem with their employees accidentally deleting folders like Videos and Pictures and are looking for a way to restore them, short of blowing away the entire user profile and starting over. They found some techniques on the Internet but they don't always work consistently or completely. What is the recommended way of r...
Apr 22, 2014
Post comments count0
Post likes count1
Today we have another example of Le Chatelier's Principle as interpreted by John Gall: Every system resists its proper functioning.
There was a video card manufacturer which was using the key so that they could inject their DLL into every process. I have no idea why. Perhaps to get a nice bonus.
In Windows Vista, the registry key was deactiv...
Apr 21, 2014
Post comments count0
Post likes count1
Today we'll do a scripting version of
an old C++ program:
Printing information about the items in the Recycle Bin.
(How you wish to act on the information is up to you.)
This is a pattern we've seen a lot.
Bind to a folder, enumerate its contents,
extract properties.
Wow, that was way easier than doing it in C++!
Just for fun, I'll do it ...
Apr 18, 2014
Post comments count0
Post likes count0
One of my colleagues frustrates his family by hiding the eggs for the annual Egg Hunt way too well. "Apparently, drawers and freezers are out of bounds in the traditional egg hunt." Here are my house rules for Easter Egg Hunts: Personally, I like to hide eggs in plain sight. It's surprising how long it can take somebody to find a yellow egg res...
Apr 18, 2014
Post comments count0
Post likes count1
If you use one of the command line debuggers based on the
Debugger Engine,
you can set a breakpoint on a function whose name contains spaces
or other special characters by quoting the symbol name.
The trick here is that you do not quote the entire string;
you quote only the symbol name.
Note that the quotation marks do not go around the
part....