I have a GUI app and i have a console app that performs some processing. The
GUI app calls the console app to do processing at various times. The console
app will need to be run in a separate thread (in order to leave the UI
useable) however it will need to report various messages (strings) during
its processing to the GUI app's output window. Similar fashion to the output
window in visual studio.
In the old MFC days a nice way to do this was using the WM_COPYDATA message
and send the string to the window that way. However, i'd like to do it the
..NET way.
I have briefly looked at App Domains and .NET remoting and this seems like
it could do it. However that route looks a bit like using a sledge hammer to
bang in a nail. Are there any nice quick solutions? What would the proper
way to do something like this be?