As a quick note before starting my question, I am quite new to C++ and especially DLLs.
I am currently coding a C++ DLL in VS2012, for use with a program. Note that I do not have source access to the specific program.
I'd like to write some output to a seperate console window from the DLL when it gets asked by the program in question to do something.
My question is, how would I go about doing something like this? To clarify exactly what I want, I'd like a seperate console window to open as soon as the DLL gets attached to the program, and have it then write output to the console. When the DLL gets detached from the program it should also close the console window.
My guesses so far have been to make a seperate Win32 console application project in my solution, and then possibly reference it in my DLL, and have it execute certain methods from it, with the output contained in the arguments of the call. I have no idea how to go about this though, especially since I would want this seperate console project to be included in the same DLL.
Thanks for any input.