Showing results for May 20, 2013 - The Old New Thing

May 20, 2013
Post comments count0
Post likes count0

The importance of remembering parity in a back-and-forth race on your flying bicycle

Raymond Chen
Raymond Chen

I dreamed that one of my friends had made the U.S. cycling team. (Perhaps because everybody else got busted for doping.) Even more implausibly, I also made the team. To celebrate, he challenged me to a short race. The path ran along a river, in which a medium-sized boat was setting sail. Our bicycles somehow could fly (which we considered perfect...

Non-ComputerDream
May 20, 2013
Post comments count0
Post likes count1

Copying a file to the clipboard so you can paste it into Explorer or an email message or whatever

Raymond Chen
Raymond Chen

Today's Little Program takes a fully-qualified file name from the command line and puts that file onto the clipboard. Once there, you can paste it into an Explorer window, or into an email message, or a word processing document, or anybody else who understands shell data objects. #include <windows.h> #include <shlobj.h> #include <...

Code