How to convert an EXE into a DLL:
This is called emulating, and it is not very nice. For starters, there are only 2 languages which can be easily translated
both ways.
The first is machine code, which your processor reads (although this can be either 6502 or Z80 machine code)
The second is assembly language, which consists of commands like INC, DEC and LDA.
Those commands can be replaced by commands in C++, but not very efficiently. And when it is compiled, it would become even more inefficient, and can be likened to turning motion into sound, to then turn it into something like light. Not very efficient.
How to turn .DBA code into C++ code
This means hardwiring each and every one of the DBPro functions into C++ code. Once you've done that, you can simply alter the syntax, but keep the semantics the same. Slightly longer, but much more efficient.
Although, to be honest, I don't see a reason for making a DLL with DBPro.
I can't be bothered to invent a signature