Googles appar
Huvudmeny

Post a Comment On: cbloom rants

"02-23-11 - Some little coder things - Clip"

3 Comments -

1 – 3 of 3
Blogger soal said...

According to the docs, you need to alloc the clipboard mem as GMEM_MOVEABLE. DDESHARE is ignored in modern windows. I'm surprised it works at all, but MS does love the compatibility shims.

February 23, 2011 at 9:40 PM

Blogger cbloom said...

That's what I get for copy-pasting code! Anyway it works just fine with DDESHARE , but sure use MOVEABLE instead.

As much as we love to hate on MS and their compatibility nightmare, it's pretty damn nice that my windows code from 10-15 years ago still works fine for the most part.

February 24, 2011 at 9:44 AM

Anonymous Anonymous said...

I solved the VS command line annoyingness by writing some macros, and it sounds like it's time for my once-yearly attempt to plug them to somebody else ;)

http://pastebin.com/abkWpEQy

The officially approved bindings are Alt+C for SetCmdLine, and Shift+Alt+C for AppendToCmdLine, but whatever.

Highlight text in the text editor, and use the above as appropriate to build the command line. I usually end up with a text file in each solution that's got a bunch of file names and command line snippets in it, and assemble the command line from those parts depending on what I'm testing.

February 24, 2011 at 2:53 PM

You can use some HTML tags, such as <b>, <i>, <a>

This blog does not allow anonymous comments.

Comment moderation has been enabled. All comments must be approved by the blog author.

You will be asked to sign in after submitting your comment.