Welcome to MSDN Blogs Sign in | Join | Help

January 2007 - Posts

Copying HTML on the clipboard

Setting plain text on the clipboard is easy. Call Clipboad.SetText("Hello!"), and it works great. But what if you want to set HTML? Tempting to think you just call Clipboard.SetText ("<b>Hello!</b>", TextDataFormat.Html ). But that doesn't
Posted by jmstall | 6 Comments
Filed under:

Image Header vs. File Timestamps.

Folks may use the term "Module Timestamp" to mean both file timestamp and image header timestamp. Although they're usually very close, they're different and won't be identical. Here's a compare/contrast: File timestamp Image header timestamp What is it?
Posted by jmstall | 5 Comments

UpdateModuleSysmbols comes on attach

I forgot about UpdateModuleSysmbols when I described the fake debug events sent on attach . This event is sent after LoadModule and is what delivers the symbols for dynamically generated code. This lets you debug code generated with ref.emit when you
Posted by jmstall | 0 Comments
Filed under:

Tips for writing an Interop Debugger

I've had a growing number of people inquire about how to write an interop-debugger with ICorDebug. I strongly advise anybody considering writing an interop-debugger to reconsider for reasons listed here . However, for those who can not be dissuaded, and
Posted by jmstall | 4 Comments

Using Technology for evil

I just read on thew news: Report: Insurgents Using Google Earth to Hit Coalition Bases in Iraq ; it saddened me and reminded my of an Engineering Ethics class I took back in college. As engineers, we get so caught up in delivering "cool" technology that
Posted by jmstall | 5 Comments
Filed under:

#ifdef usage in Rotor

I ran my #ifdef counter on the Rotor sources. The #ifdefs fall into a few categories: cross-platform, cross-Operating System, cross-compiler: . Eg, _x86_, _ppc_; PLATFORM_UNIX, Win32, _Win64, BIGENDIAN. preprocesser alternatives to #pragma once . Each
Posted by jmstall | 1 Comments
Filed under:

Does C# intellisense read you mind?

It's cool that VS has intellisense for C# (the feature where in the middle of typing an expression, a little window pops up listing possible things to complete the expression), and that it seems to be very consistently accurate. I've noticed that it just
Posted by jmstall | 8 Comments
Filed under:

You don't want to write an interop debugger.

I've had a growing number of people inquire about how to write an interop-debugger with ICorDebug. My goal here is to discourage you from doing that. (This reminds me of one of my college classes. On day one, the acting-Prof launched into a great sermon

I've been tagged.

Tess tagged me. This seems like a good excuse to diverge from my consistent policy of work-related stuff. :) So here are 5 things you probably don't know about me: I went to University of Illinois and got a bachelor's in Computer Engineering and a minor
Posted by jmstall | 0 Comments
Filed under:

Type-safe Managed wrappers for kernel32!GetProcAddress

Pinvoke is cool in managed code, but sometimes you need to get straight at kernel32!GetProcAddress. For example, maybe you need dynamic control over which unmanaged dll you want to load. But that returns a void*, which is a major no-no in managed code.
Posted by jmstall | 6 Comments
Filed under:
 
Page view tracker