IanM posted an example a little while ago about this the C++ way. I just need the method the Purebasic way. Maybe I'm just to ignorant to do the translation.
Here is a shortened snippet just dealing with two functions in question in C++:
const char* Dependencies[] =
{
"DBProMemblocksDebug.dll",
};
EXPORT int GetNumDependencies( void )
{
return sizeof(Dependencies) / sizeof(const char*);
}
EXPORT char const* GetDependencyID(int ID)
{
return Dependencies[ID];
}
If I assume correctly, these two functions are used to force a DBPro DLL or other 3rd party DLLs to be added into the executable when using a plugin you created that needs them. This way they can pass data and use functions from them. For example using memblocks like in the above code from inside your plugin.
So, I would place these to Procedures as CDLL in my plugin code written in purebasic. If a command from my plugin is used, DBPro will call those two functions when present to get the dependencies upon compliation. Similar setup to the Constructor/Destructor functions usage for init/de-initing stuff.
After compiling the plugin code in Purebasic, I will have to change the function names to mangled with either a hex editor or with the PPFixer utility.