Ok so ive written a console program which is great, and now i want to create a thread that makes a window (winAPI) and can commuunicate with the console window. Well to describe it properly, i would like the window thread to send predetermined text (by clicking buttons) to the console when the console waits for consin, and i would like the console to send all of its cout to the window thread to be displayed somewhere.
Ive never used the winAPI before, and have a very limited idea of how it works. The first thing my main function does is this-
DWORD dwThreadID = 0;
HANDLE hThread = CreateThread(NULL,0,ThreadProc,argv[0],0,&dwThreadID);
Which creates my window thread, then it goes on to execute the console code. I am lost as to where to start. I know where my message loop and windows procedure is (its in a different source file), but ive no idea where to start to get to where i want to go. Could anyone give me a nudge in the right direction?