sivaprakash.shanmugam
May 30th, 2006, 06:41 AM
Whats wrong with the Threading statements which is no allowing me to create the Thread
System::Threading::Thread *backgroundThread = new System::Threading::Thread (new System::Threading::ThreadStart (SocketConnection,0) );
backgroundThread.Start();
void TCPIP::SocketConnection()
{
}
Error Message:
error C3364: 'System::Threading::ThreadStart' : invalid second argument for delegate constructor; needs to be a pointer to a member function
How it should be rewritten.
System::Threading::Thread *backgroundThread = new System::Threading::Thread (new System::Threading::ThreadStart (SocketConnection,0) );
backgroundThread.Start();
void TCPIP::SocketConnection()
{
}
Error Message:
error C3364: 'System::Threading::ThreadStart' : invalid second argument for delegate constructor; needs to be a pointer to a member function
How it should be rewritten.