4
In C# I use the following code to create Managed Thread:
Thread thread = new Thread(new ThreadStart(minhaFuncao));
In C++ i made:
using namespace System::Threading;
.
.
Thread^ thread = gcnew Thread(gcnew ThreadStart(this,PutToSleep));
and when rebuilding, many errors end up being accused, only with these parts of the code.
How to make a Managed thread in C++ that works like the code line above C#?
I believe that it is worth editing the question, to make clear that it is the creation of Managed Threads in C++, using CLR
– carlosrafaelgn
I agree. It would also be good to include the errors accused by the compiler in the question. :)
– Luiz Vieira