locked
What classes help me to create Async functions in C++?

    Question

  • I am trying to create the following C# equivalent in C++ Metro App, what are the classes I should use, where to find more documentation?

            public IAsyncOperation<double> TestAsyncFuncAsync(long iterVal)
            {
                return AsyncInfoFactory.Create(() =>
                    {
                        double dbl = 100.2324;
                        for (int indx = 1; indx <= iterVal; ++indx)
                        {
                            dbl = dbl / (indx * indx);
                        }
    
                        return dbl;
                    }
                );
            }
    
    

    Tuesday, November 29, 2011 11:43 PM

Answers

All replies