This is how you can easily make a basic dll. Once you get this working, you can expand upon it.
1) Get devcpp.
2) File -> New Project -> Dynamic Link Library
3) Delete all the code that it starts you with.
4) Type this in the main source file:
#define DBPCMD extern "C" __declspec(dllexport)
DBPCMD int returnInteger()
{
return 42;
}
5) Add a source file named 'stringtable.rc' and put this in it:
STRINGTABLE
BEGIN
1 "RETURNVALUE[%L%returnInteger"
END
6) Save and compile the project.
7) Copy the output dll to your "dbproot\compiler\plugins-user" directory
8) Open up dbp and compile this:
value as integer = 0
value=returnvalue()
print value
wait key
9) Done.
This is as simple as I can put it.
P.S: For more information after you get this working, look at the 'technical documents' in the dbp help.
Who needs a signature?