hi. i have a class like this :
public ref class MyClass : public IDisposable
{
.
.
.
public: MyClass();
private: void Wait();
.
.
.
}
and the cpp file:
MyClass::MyClass()
{
// Create a new thread to wait for events
Thread^ t = gcnew Thread(gcnew ThreadStart(&MyClass::Wait));
t->Name = "Event Thread";
t->Start();
}
in compile i got this error : "error C3350: 'System::Threading::ThreadStart' : a delegate constructor expects 2 argument(s)" I've looked in msdn and saw a example that exactly used this way for threading but there was no error in compilation. thank you for help.
sometimes 0 can be 1