Ok, this short explanation should get you started:
1. Open Dev-C++
2. Make a new project, select DLL from the "New Project" window
You'll get a project with some code in.
3. For the sake of being simple, delete all the code in the project.
4. put "#define DLL _declspec(dllexport)" at the top of your code.
Now make any function this way with DLL in the declaration:
void DLL myfunction()
{
return;
}
You can also do it this way, with DLL on the opposite side of the type specification:
DLL void myfunction()
{
return;
}
Now, compile it(note that functions for use from a DLL do not need prototyping), and open it with notepad. Search for the name of your function, and it should display its full decorated name, something like _Z8myfunctionv. Now load up db, create a new project, put the dll in its path, load it into dbpro, then use
call dll with the decorated name as the first parameter, and if you have other parameters they go after, like:
call dll 1,"_Z8myfunctionv",param1,param2,etc
If you don't like having to type in function names like that, then enclose the function with the extern "C"{} block, like this:
extern "C"{
void DLL myfunction()
{
return;
}
}
Now you can call from db like:
call dll 1,"myfunction",param1,param2,etc
You can put multiple functions within the extern "C"{} block.

"Lets migrate like bricks" - Me