Showing tag results for Code

Mar 31, 2008
Post comments count0
Post likes count1

You can drag multiple virtual objects, you know

Raymond Chen

A customer wanted to know how they could find out the directory that the user dropped a file onto. As we already noted, users can drop files onto things other than directories, so the question itself comes with incorrect hidden assumptions. This is another one of those cases where you have to ask the customer, "What are you really trying to do?" ...

CodeWhat a drag
Mar 10, 2008
Post comments count0
Post likes count1

Why isn't there a GetDlgItemFloat function?

Raymond Chen

Jonathan Wilson asks, "Do you know why there is a GetDlgItemInt and a SetDlgItemInt but not a GetDlgItemFloat and a SetDlgItemFloat?" Give people five dollars and they'll ask why you didn't give them ten. Let's start with the first question. Why is there a function? After all, doesn't do anything you couldn't already do with and . Well, read...

Code
Mar 3, 2008
Post comments count0
Post likes count1

Why does scheduling a task require a password?

Raymond Chen

Kevin asks, "Windows XP lets me install applications, delete files, etc., so why does scheduling a task requires a password?" (I guess the answer to this question wasn't obvious since nobody answered it in the suggestion box.) Because scheduled tasks run after you have logged off. All those other operations occur while you are logged on. Yo...

Code
Feb 29, 2008
Post comments count0
Post likes count1

Why can't I get FormatMessage to load my resource string?

Raymond Chen

A common mistake I see is people confusing message tables with string resources. This basically shows up in one place: . The folks who were designing Win32 decided that plain string resources weren't fancy enough, so they invented message tables, which is just another way of storing strings in resources. Why string resources weren't good enough ...

Code