Showing results for November 2012 - Page 3 of 3 - The Old New Thing

Nov 8, 2012
0
0

What does the COINIT_SPEED_OVER_MEMORY flag to CoInitializeEx do?

Raymond Chen
Raymond Chen

One of the flags you can pass to is , which is documented as : Trade memory for speed. This documentation is already vague since it doesn't say which direction the trade is being made. Are you reducing memory to increase speed, or increasing memory by reducing speed? Actually it's neither: If you pass this flag, then you are instructing COM to...

History
Nov 7, 2012
0
0

Instead of trying to create a filter that includes everything, try just omitting the filter

Raymond Chen
Raymond Chen

The question was sent to a peer-to-peer discussion group for an internal program, let's call it Program Q. I'll add additional context so you can follow along. Hi, I'm trying to build a query that finds all issues owned by a particular user, regardless of which product the issue belongs to. I know that I can query for specific products by sayi...

Other
Nov 6, 2012
0
0

If you're asking somebody to help you, you want to make it easy for them, not harder

Raymond Chen
Raymond Chen

A customer liaison asked a question that went roughly like this: From: Liaison My customer is having a problem with the header file winfoo.h. The environment is Windows Vista German SP1 with Visual Studio 2008 Professional German SP1 and Windows SDK 6000.0.6000 German. When they try to include the file in their project, they get an error on lin...

OtherThe social skills of a thermonuclear device
Nov 5, 2012
0
0

How do I get the tabbed dialog effect on my own custom tabbed dialog?

Raymond Chen
Raymond Chen

CJ observed that the standard tabbed dialogs provide an effect on the tab pages and want to know how to get the tabbed dialog effect on custom dialogs. fds242 noted this as well and wanted to know why the automatic tabbed dialog effect doesn't kick in until you put a static control on the child dialog box. Let's look at the first question firs...

Code
Nov 2, 2012
0
0

How do I parse a string into a FILETIME?

Raymond Chen
Raymond Chen

Public Service Announcement: Daylight Saving Time ends in most parts of the United States this weekend. Other parts of the world may change on a different day from the United States. The NLS functions in Win32 provide functions to convert a into a string, but it does not provide any functions to perform the reverse conversion. Here are few t...

CodeTime
Nov 1, 2012
0
0

When you synthesize input with SendInput, you are also synthesizing the timestamp

Raymond Chen
Raymond Chen

A customer was reporting a problem when they used the function to simulate a drag/drop operation for automated testing purposes. I see the mouse move from one location to another, and the starting and stopping locations are correct on the screen, but the mouse moves instantaneously rather than waiting 500ms between operations. Here's how I'm s...

Code