Answer the question
In order to leave comments, you need to log in
How to translate Task from C# to C++/CLI?
It is necessary to translate this into C++/CLI from C#:
//================================= ================================================
( C#)
System.Threading.Tasks;
var tok1 = Task.Factory.StartNew( () =>
{
/...
});
//====================================================================================
(C++)
( Загвоздка в (() =>))
using namespace System::Threading::Tasks;
Task^ tok1 = Task::Factory->StartNew( <----??????????????????????????????????????????????
{
/...
});
//=====================================================================================
Answer the question
In order to leave comments, you need to log in
these are lambda functions, how to work with them in C ++ 11 and above can be seen here
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question