C# does not produce native code, it produces CRL bytecode. That byte code is not compatible with a natively compiled program, i.e. mIRC. As for writing COM objects, COM is an ugly and complex programming technique. I doubt you'll find a decent tutorial, buy some books instead.