|Date:||April 30, 2007 / year-entry #150|
|Summary:||If you hunt around the Internet you'll find lots of people† who hard-code the string "open" as the second parameter to the ShellExecute function, indicating that they want to open the document specified as the third parameter. While that's a nice thing to want to do, it might not be the right thing. When the...|
If you hunt around the Internet you'll find lots of people† who hard-code the string
When the user double-clicks a document, the shell executes the default verb, which is not necessarily "open". For example, for audio files, the default verb is often "play", and for pictures, it's often "view". If you want to launch the document as if the user had double-clicked it, then you need to pass
†The phrase "lots of people" means "lots of people". It doesn't mean "lots of people not including Microsoft."
<-- Back to Old New Thing Archive Index