Search   Feed   Browse   Add
Feed items 1 - 3 of 3 for July 2008

MessageBoxIndirect loads the icon itself; you can't hand it a pre-loaded icon - July 21, 2008

Commenter 8 wants to know how to tell the MessageBoxIndirect function to use an existing HICON instead of pointing it to an icon resource. You can't. The MessageBoxIndirect loads the icon itself. You can't hand it a pre-loaded icon. Of course, it's hardly rocket science to write your own MessageBoxWithMyIcon function that lets you use whatever icon you want. There's no law that says all YesNo dialogs must use the MessageBox function. Feel free to write your own. The MessageBox and...
http://blogs.msdn.com/oldnewthing/archive/2008/07/21/8760127.aspx

How did the invalid floating point operand exception get raised when I disabled it - July 3, 2008

Last time, we learned about the dangers of uninitialized floating point variables but left with a puzzle: Why wasn't this caught during internal testing I dropped a hint when I described how SNaNs work: You have to ask the processor to raise an exception when it encounters a signaling NaN, and the program disabled that exception. Why was an exception being raised when it had been disabled The clue to the cause was that the customer that was encountering the crash reported that it tended...
http://blogs.msdn.com/oldnewthing/archive/2008/07/03/8682463.aspx

Uninitialized floating point variables can be deadly - July 2, 2008

A colleague of mine related to me this story about uninitialized floating point variables. He had a function that went something like this, simplified for expository purposes. The infoType parameter specified which piece of information you're requesting, and depending on what you're asking for, one or the other of the output parameters may not contain a meaningful result. BOOL GetInfo(int infoType, int intResult, double dblResult) int intValue; double dblValue; switch (infoType) case..
http://blogs.msdn.com/oldnewthing/archive/2008/07/02/8679191.aspx
Available Archives
- May (5 items)
- June (5 items)
- July (3 items)
Sponsored Links
© 2008 FeedCapsule.com  |  Contact