If I understand correctly your problem, you want to redirect your dll's stdout to some stream you can read.
This requires two programs:
1 A ProgA
controlled program which links with the dll and operates it, calling
void dll_callA(char* string)
2 A controlling program which launches ProgA
with redirected stdout; see Creating a Child Process with Redirected Input and Output
] for detailed instructions.