A customer wanted to know how to disable windowless control support in dialog boxes. "The customer has a CommandButton ActiveX control on his dialog box, and using to get the window handle of the command button succeeded with VC 6.0, but when compiled with VC 9.0, it does not create a window. I'm guessing that this is caused by 's suppor...
A customer asked,
"Given a hardlink name,
is it possible to get the original file name used
to create it in the first place?"
Recall that hard links create an alternate name for a file.
Once that alternate name is created, there is no way to tell
which is the original name and which is the new name.
The new file does not have a "link back to the...
We saw last time
one of the deadlocks you can run into when playing with pipes.
Today we'll look at another one:
Our program runs a helper process with stdin/stdout/stderr redirected.
The helper process takes input via stdin and prints the result
to stdout.
Sometimes we find that the from the controlling
process into the stdin pipe hangs.
Clos...
A customer was having trouble manipulating the stdin stream
that was given to a process.
How do you simulate sending Ctrl+Z to a hidden console process
programmatically?
I am using
and want to send the console a Ctrl+Z.
I've tried sending ASCII code 26, but that doesn't work.
supports Ctrl+C
and
Ctrl+Break but not Ctrl+Z.
Here's what I'm ...
A customer had a problem involving heap corruption.
In our code, we call
and then for each heap, we call
to enable the low fragmentation heap.
However, the application crashes due to an invalid heap handle.
My question is, why do we need to allocate an array of size 1025
even though we pass 1024 to ?
Ha, faked you out with that question...
Setting the attribute in your key indicates that your application can accept a URL on the command line as the document to be opened. The documentation for this attribute is a confusing blend of raw documentation, guidance, history, and an example. Let's tease the parts apart so you won't confuse the example with the contract.
The raw documentat...
The integral types , ,
and are 32 bits wide on 32-bit systems
and 64 bits wide on 64-bit systems.
What happens when a 32-bit process sends a message to a 64-bit window
or vice versa?
There's really only one choice when
converting a 64-bit value to a 32-bit value: Truncation.
When a 64-bit process sends a message to a 32-bit window,
the 64-bit ...