There are lots of ways you can do this.

1. You write the class with _declspec(dllexport) option and you can directly import the class from where the GUI is located.
2. Pass the handler to the edit box where the DLL class can display the output.