Here is a little code snippet for those wanting to return strings from external DLLs using function ptr calls. Obviously, I usually do all this stuff in VS C+, but wanted to play around a bit more with the DLL commands (Matrix1Utils) in DBPro.
The #constant is optional, I just wanted to see if it worked. I added a dummy function with one of the Testcommands2.dll to prevent DBPro crashing. I've attached the .dll file just in case anyone wants to experiment.