In C # I use the following code to create the Managed Thread:
Thread thread = new Thread(new ThreadStart(minhaFuncao));
In C ++ I did:
using namespace System::Threading;
.
.
Thread^ thread = gcnew Thread(gcnew ThreadStart(this,PutToSleep));
And when rebuilding, many errors end up being accused, only with those snippets of code.
How to make a managed thread in C ++ that works like the above code line in C #?