Basically no there isn't, at least not in a practical way. I suppose it could technically be done in that the DLL could SendMessage all the relevant commands to mIRC provided the DLL was called with the correct events, but it would be completely pointless and would only serve to make the script larger and much slower. I'm not really sure why you want to put it into a DLL at all...