Small How-to for creating dlls with Dev-c++ (www.bloodshed.net)

This doc refers to version 4.9.6.1
Basic knowledge on how to code and compile c++ is expected.

First when creating a new project you select DLL and devcpp will create 
two new files for this project: dllmain.cpp and dll.h
In fact you can delete both as mIRC can't work with them.

To create a function you can call with mIRC you have to declare it this way:

extern "C" _declspec(dllexport) int __stdcall yourfunction(HWND HWND, HWND, char* data, char*, BOOL, BOOL)

when you have a look at the code in the breaker.dll you will notice 
I used makros to avoid too much writing.

The only functions not called this way are LoadDll and UnloadDll:
void LoadDll(void)
int UnloadDll(int)

Before compilation make sure you have these settings in the "Project Options" in the "General" tab:

Additional Command line options:
Compiler:
-DBUILDING_DLL=1
Linker Options/Optional Libs or Object files
--no-export-all-symbols --add-stdcall-alias

as long as your code is ok it should compile and work with these settings 
for more in-detail explanations refer to necroman's tutorial on how to make
dlls with VisualC++.

This How-to should only tell what you need to compile as Devcpp doesn't 
use .def files as VC does.

if you still have problems as mIRC can't find the routine: * /dll: no such routine
tell me on JumpinS@gmx.net (i won't debug your code)