daily pastebin goal
55%
SHARE
TWEET

Untitled

a guest Dec 5th, 2016 19 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int testNumber = 3;
  2.  
  3. auto testBlock = [testNumber]() -> concurrency::task<void> {
  4.     auto picker = ref new Windows::Storage::Pickers::FileOpenPicker();
  5.     picker->FileTypeFilter->Append("*");
  6.  
  7.     {
  8.         std::wstringstream stream;
  9.         stream << "Before: " << testNumber << "\n";
  10.         OutputDebugString(stream.str().c_str());
  11.     }
  12.  
  13.     co_await picker->PickSingleFileAsync();
  14.  
  15.     {
  16.         std::wstringstream stream;
  17.         stream << "After: " << testNumber << "\n";
  18.         OutputDebugString(stream.str().c_str());
  19.     }
  20. };
  21. testBlock();
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top