Okay, the Delphi code is very like the c++, the main differences being that there's no comma between the number and the string, and its loaded into the dll by putting this code at the top of your .cpp dll source file: pragma resource "file.res". I'm now getting some response from DBPro when I try to use my command, but not one I'd like: "Could not find function 'MyTest' in 0:core.dll". Usually I'd get no response at all, so this is an improvement

.
The source for my test .dll is:
#define MYCOMMAND __declspec ( dllexport )
#pragma resource "mytest.res"
MYCOMMAND int MyTest( void )
{
return 10;
}
And the code for my .rc file is:
STRINGTABLE
BEGIN
1 "MY TEST[%L%MyTest"
END
Could this be because I need the "decorated function name", because when I load the .dll into notepad, I cant seem to find anything like the ones in the documentation.
Whatever I did I didn't do it!