Compile the dll without debug options and try that. Seems like the error is that mIRC cannot handle the debug information added to the dll.