Download presentation
Presentation is loading. Please wait.
Published byKäte Heintze Modified over 6 years ago
1
Using C++ in your Windows Phone Applications Talk will be repeated tomorrow morning at 8:30 in 33/McKinley Peter Torr, Program Manager Windows Phone Developer Platform 3-049
2
Agenda C++ support in Windows Phone 8 When and why to use C++
Introduction to Windows (Phone) Runtime ~30 minutes of demos!
3
Welcome back to C++
5
C++ support in Windows Phone 8
Visual C Same as Windows 8 New C++11 features
6
C++ support in Windows Phone 8
RValue references Forward declared enums Bidirectional fences static_assert Alignment Data-dependency ordering Auto Standard-layout and trivial types exception_ptr Trailing return types Extended friend declarations Thread-local storage Lambdas Local and unnamed types as template arguments __func__ Decltype Range-based for-loop C99 preprocessor Right angle brackets override and final long long extern templates Minimal GC support nullptr Atomics Strongly typed enums Strong compare and exchange A sampling of C++ language features supported in Windows Phone 8 Derived from
7
Quick tour of C++ features
Demo Brief walk-through of key C++ features Direct3D default template
8
When and why to use C++
9
Using C++ in Windows Phone apps
All Windows Phone 8 apps can use native code Direct3D games: Pure native XAML apps: Native compute + Direct3D ...but not all apps need to use native code See for more on native games
10
1 Portability Performance 2 Reusability 3 Top 3 use cases for C++
There is no requirement to use C++ in your XAML apps 1 Portability Performance 2 Reusability 3
11
C++ code re-use Demo Using legacy code in Windows Phone 8 apps
12
Introduction to Windows (Phone) Runtime
reinterpret_cast<Phone>(WindowsRuntime)
13
What is the Windows Runtime?
Infrastructure Core plumbing Common type system Standard programming model Windows Phone features Libraries you write (or license) Projected to C++ and C# / VB What is the Windows Runtime? APIs
14
When is the Windows Runtime used?
Calling APIs Native / Managed Interop Direct3D game app model
15
Windows Runtime Demo Calling APIs from C#
Creating a component in C++ and using from C# The magic of async
16
Writing portable components
17
Sharing code across platforms
With iOS and Android: Standard C and C++ Common libraries Middleware providers With Windows 8, add: Windows Runtime Win32 and COM See for more on Windows 8 portability
18
Using SQLite in Windows Phone 8
Demo Real-world example of common open source library Another look at async
19
Wrap-up
20
Key takeaways for using C++
All Windows Phone 8 apps can use C++ C++ enables portability and code re-use Windows Runtime is the key to unlocking APIs
21
Please fill out an evaluation form!
22
Related sessions (live or on-line)
Title Speaker 3-046 Native C/C++ Game Development Sam George 3-047 Networking, Bluetooth, and NFC Proximity for Developers Tim Laverty 3-043 How to leverage your code across WP8 and Windows 8 Andrew Byrne et al 2-018 Photo and Lens Apps Eric Bennett 4-001 The power of C++ - Project Austin (not phone specific, but a great talk) Ale Contenti
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.