Following the threading tutorials given on MSDN, I am unable to create a thread in visual c++. I have the code:
Gives me an error that ThreadStart requires two parameters, I look and find that in the examples, the tutorial uses an instance of the same class that contains the function. Trying to input a Form or the instance of Form1 gives an error. What do I place in the first parameter?
System::Threading::ThreadStart^ threaddelegate = gcnew System::Threading::ThreadStart( &Form1::listen ); System::Threading::Thread^ lThread = gcnew System::Threading::Thread( threaddelegate ); lThread->Start();