The name of the registry key for configuring automatic debugging of application crashes is AeDebug. Okay, so it's obvious what "Debug" stands for, but what does "Ae" stand for? I can't prove it, but circumstantial evidence points to AE standing for "Application Error". The title of the dialog box was originally "Application Error". And there'
So you're working at your computer, everything is humming along just fine, and then when you double-click a file, instead of launching the associated application, Windows asks you what program you want to use to launch the document. Why doesn't it just follow the instructions you gave it already? A customer installed a new program that suppor
Say you have a registry hive file. One way to inspect and manipulate its contents is by calling the RegLoadKey function to mount it in the registry and then use the normal registry operations. This option may be undesirable for various reasons. First of all, the RegLoadKey function requires administrator privileges, so th
Some of my relatives from Vancouver, British Columbia enjoy going on cruises. During one cruise along the Alaska coast, they found a large number of passengers gathered on the viewing deck and gazing toward the shore in awe and amazement. My relatives looked out toward shore but couldn't identify what it was that drew everyone's attention. Wa
A customer reported that the GetTextExtentPoint and GetTextExtentPoint32 functions do not return the correct extents for strings that contain tabs. The documentation does say that they do not support carriage return and linefeed, but nothing about tabs. The TextOut and GetTextExtentPoint funct
You can tweak the information included in crash dumps created by Windows Error Reporting. To request that Windows Error Reporting include a dump of another process if the calling process crashes, use the WerRegisterAdditionalProcess function. This is useful if your program is split up into multiple processes. You can add addit
The DrawText function will recognize tab characters if you ask for DT_EXPANDTABS. And then things get weird. If you ask for DT_EXPANDTABS, then you cannot ask for any of the DT_*_ELLIPSIS features. The ellipsis code doesn't support tabs. Tab stops default to every eight average character widths. If you want to change the defa
In Windows 95, it became tradition that if you modified the code that displays the font preview in the Windows 95 command prompt font chooser property sheet page, you also got to tweak the sample date and file sizes to be a value personally significant to you. By the time Windows 95 shipped, the values in the font preview were as follows:
If you call CryptProtectData twice in a row with the same parameters, you get different results. Why are the results inconsistent? The plaintext is the same. The entropy is the same. The key is the same. Shouldn't the result be the same? If those were the only inputs to the encryption algorithm, then the results should be the same.
A customer was using an MFC CHtmlDialog as a child dialog and found that they needed to add the WS_CLIPCHILDREN style to ensure that the contents appeared on the screen; otherwise, the parent dialog would paint its background over the child dialog, and the child dialog would consequently appear to vanish. On the other hand, they also had