i was reading the thread that talking about my problem here:
how to use CreateThread for functions which are class members
after using the code from microsoft site here :
How to spawn console processes with redirected standard handles
i implemented this solution but there some problems like :
i need to use the lpvThreadParam parameter in
DWORD WINAPI GetAndSendInputThread(LPVOID lpvThreadParam)
how can i implement this in the example RichieHindle suggested? in the ThreadStart function ?
also the parameters in the bRunThread and hStdIn (from the microsoft example i initiate them on the constructor with value but when i execute the ThreadStart with the content of the GetAndSendInputThread from the microsoft example it seams that the values are never set.
i hope i was clear , basically i like to be able run this example as c++ class .