There was an article written by, I believe, John Chamberlain called "Taking control of the compiler" or something like that. He provided code that hooked the CreateProcess of vb's ide and you could modify/add asm directly into the asm that vb ide spits out before it was compiled and linked. Maybe that is how he did it.