Effective C++/WinRT for UWP and Win32

Sign in to queue

Description

C++/WinRT is designed to give C++ developers uncompromising performance as well as amazing productivity. Come and learn how to make effective use of C++ for the most demanding projects, whether it’s a system component, desktop or console app, or UWP app. In this session, we’ll also walk you through our early support for creating a XAML application in standard C++ and provide tips and guidance on how to move your C++/CX code to use standard C++ with C++/WinRT.

Day:

1

Session Type:

Breakout 75 minute

Code:

BRK2425

Room:

Sheraton: Grand Ballroom B

Embed

Download

Download this episode

Download captions

The Discussion

  • User profile image
    bkuhns

    Switching thread contexts with a `co_await` looks a little scary to me. Not because its new and different, but because it looks fragile. In production code that doesn't fit on a single slide, it seems dangerously easy to miss things and move some code that now executes on the wrong thread. 

     

    So, is it possible to dispatch code to another thread with a more contained scope like a lambda? Something like...

    MyControl.Dispatcher.Invoke([] {
        // several lines of code that *must* run on the UI thread...
    });


  • User profile image
    Smart Gotodo

    C++ becoming C#, great and awsome!

Add Your 2 Cents