http://www.vbadvance.com is the link for a utility which you can use to make VB6 export DLL's.

I spent a couple minutes and tried this out. It looks like it can work. mIRC appears to have found the function I exported but when I tried calling it it crashed.

My guess it might have to do with the fact that VB is using a bstr and mIRC is probally expecting a character array. Who knows maybee someone will get it to work.