I have a Windows Universal C++ App with a WebView, which is calling a Javascript function that returns a string. Now I want to convert a Windows::Foundation::IAsyncOperation<String^>^
to an std::string
Here is the code that calls the Javascript function
Windows::Foundation::IAsyncOperation<String^>^ result = this->webView1->InvokeScriptAsync("JSfunction", arguments);
I'd like to have result
as a std::string