Well basicly it isn't possible to create a normal Win32 DLL in Visual Basic that you can use directly in mIRC. What CAN be done is creating an ActiveX DLL and use mIRC's /comopen etc. functions to gain access to the COM object you create in VB.