SlideShare a Scribd company logo
App Windows Phone 
in C++ 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014 
Mirco Vanini 
info@proxsoft.it - @mircovanini 
http://mircovanini.blogspot.it/
Grazie a 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014 
Sponsor
Agenda 
• How & where C++ is supported 
• When and why to use C++ 
• Introduction to the Windows (Phone) Runtime 
• Sharing C++ code (demo) 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
How: Windows Phone C++ Support 
• Can be used in any Windows Phone App 
• Visual Studio Express 2012/3 for Windows Phone 
• Same C++ compiler & CRT used in Windows 8 
• Subset of C++ 11 standard features 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Sampling of C++ 11 Standard 
Features 
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 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014 
__func__ 
Decltype Range-based for-loop C99 preprocessor 
Right angle brackets override and final long long 
extern templates Minimal GC support Strongly typed enums 
nullptr Atomics 
C++11 Features in Visual C++ 11 
Announcing the Visual C++ Compiler November 2013
Why use C++ 
• Reusability: You have some legacy code around that you really don't 
want to rewrite but still use in your app 
• Portability: You want to use the code you're about to write on multiple 
platforms 
• Performance: You really are in need for these last bits of performance 
benefits and know what you're doing 
• Personal Preference: You are a developer who really favors C++ over 
e.g. C# or you have significantly better skills in C++ 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Where you can use C++ 
• All Windows Phone 8 apps can use native code… 
 XAML apps (8.1) 
 XAML apps mixed with D3D and WinRT 
 Pure native D3D apps/games 
 C++ libraries: Dynamic Link Libraries, Static Libs 
 WinRT C++ Components 
• ...not all apps need to use native code 
WP 7.0 
Silverlight 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014 
WP 7.5 
Silverlight 
WP 8.0 
Silverlight 
WP 8.1 
Silverlight 
WP 8.1 
WinRT
Why stay on Windows Phone 
Silverlight? 
• Existing Code Investment 
• Existing Install Base 
• Not yet converged 
 Camera Lenses 
 VoIP 
 Lock Screen Wallpaper. 
 Clipboard API 
 Simple Sound Effects (XNA) 
 Run Under Lock Screen 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Why Retarget to Windows Phone 
Silverlight 8.1? 
• Access to SD Cards 
• Geofencing 
• App to App SSO (Single Sign-On) 
• App to App sharing 
• And much more… 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Windows Phone Runtime 
• Why learn about WinRT? 
 WinRT is used in the application model 
 C++ code called from XAML uses WinRT 
 Phone Platform APIs are built using WinRT 
 More Convergence 
 Latest Tooling 
 New Controls 
 Future Investment 
 Same ECMA-335 standard as .NET 
 Type-System Projections 
 CLR Projection 
 Framework Projection 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
A Closer Look at What's Available 
Direct3D with XAML" C++ application actually creates a C# main 
project and a separate Windows Runtime Component in C++. 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Sharing C++ code 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
demo 
Sharing C++ code 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Recap / Q&A 
Welcome back to C++! 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014
Q&A 
Tutto il materiale di questa sessione su 
http://www.communitydays.it/ 
Lascia il feedback su questa sessione dal sito, 
potrai essere estratto per i nostri premi! 
Seguici su 
Twitter @CommunityDaysIT 
Facebook http://facebook.com/cdaysit 
#CDays14 
#CDays14 – Roma - 23, 24 e 25 Settembre 2014

More Related Content

PPTX
C++ in windows phone apps
PPTX
WINDOWS PHONE APPS IN C++
PPTX
TDC2016SP - Cross-Platform Development with C#
PPT
Visual studio 2015 and .net core 5 – get ready to rumble
PDF
Feedback from an eclipse plugin developer to provide support to large set of ...
PPT
Cross Platform Mobile Development with Xamarin
PPTX
Overview to Xamarin : Understanding Xamarin Architecture
PDF
iOS & Android Dev in C# & Visual Studio using Xamarin
C++ in windows phone apps
WINDOWS PHONE APPS IN C++
TDC2016SP - Cross-Platform Development with C#
Visual studio 2015 and .net core 5 – get ready to rumble
Feedback from an eclipse plugin developer to provide support to large set of ...
Cross Platform Mobile Development with Xamarin
Overview to Xamarin : Understanding Xamarin Architecture
iOS & Android Dev in C# & Visual Studio using Xamarin

What's hot (10)

PPTX
Architectures and techniques for a portable app
PPTX
London Net Developers March 2015 events for London Ontario
PDF
MS Experiences 17 - Xamarin: Future of Mobile Development
PPTX
A Developer Lap Around Windows Phone 8
PPTX
Lesson 2: Introduction to C#
PDF
201801 CSE240 Lecture 04
PDF
Introduction to Android with C# using Xamarin
PDF
Xamarin for (not only) Android developers
DOC
CuongDang_CV
Architectures and techniques for a portable app
London Net Developers March 2015 events for London Ontario
MS Experiences 17 - Xamarin: Future of Mobile Development
A Developer Lap Around Windows Phone 8
Lesson 2: Introduction to C#
201801 CSE240 Lecture 04
Introduction to Android with C# using Xamarin
Xamarin for (not only) Android developers
CuongDang_CV
Ad

Similar to App windows phone in c++ (20)

PPTX
C++ in Windows Phone Apps - Overview
PPTX
01 introducing the windows phone 8.1
PDF
Windows phone 8 session 1
PPTX
Windows Phone 8 App Development
PPTX
Radu vunvulea building and testing windows 8 metro style applications using ...
PPTX
Introduction to building apps for windows phone 8
PDF
Windows phone 8 session 2
PPTX
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
PPTX
Windows Phone 8 - introducing wp8 development
PPTX
Introducing the Windows Phone 8.1 App Development Platform
PPTX
Silverlight and Windows Phone workshop
PPTX
Windows phone 8 overview
PPTX
Kulendayz 2012 Windows Phone is around the corner What now?
PPTX
Sinergija 12 Windows Phone is around the corned
PPTX
Windows Phone Introduction
PPTX
Windows 8 Hot or Not
PPTX
Why windows phone
PPTX
Designing and developing a Windows Phone 7 Silverlight Application End-to-End...
PDF
Mob02 windows phone 8.1 app development
PPTX
Cross Platform Mobile Development with Visual Studio 2015 and C++
C++ in Windows Phone Apps - Overview
01 introducing the windows phone 8.1
Windows phone 8 session 1
Windows Phone 8 App Development
Radu vunvulea building and testing windows 8 metro style applications using ...
Introduction to building apps for windows phone 8
Windows phone 8 session 2
Windows Phone 8 - 1 Introducing Windows Phone 8 Development
Windows Phone 8 - introducing wp8 development
Introducing the Windows Phone 8.1 App Development Platform
Silverlight and Windows Phone workshop
Windows phone 8 overview
Kulendayz 2012 Windows Phone is around the corner What now?
Sinergija 12 Windows Phone is around the corned
Windows Phone Introduction
Windows 8 Hot or Not
Why windows phone
Designing and developing a Windows Phone 7 Silverlight Application End-to-End...
Mob02 windows phone 8.1 app development
Cross Platform Mobile Development with Visual Studio 2015 and C++
Ad

Recently uploaded (20)

PPTX
ai tools demonstartion for schools and inter college
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
How Creative Agencies Leverage Project Management Software.pdf
PDF
Digital Strategies for Manufacturing Companies
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PDF
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PPTX
L1 - Introduction to python Backend.pptx
PDF
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
PDF
Upgrade and Innovation Strategies for SAP ERP Customers
PDF
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PDF
AI in Product Development-omnex systems
PPTX
ISO 45001 Occupational Health and Safety Management System
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PPTX
Online Work Permit System for Fast Permit Processing
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PPTX
CHAPTER 2 - PM Management and IT Context
PDF
How to Migrate SBCGlobal Email to Yahoo Easily
PPTX
Lecture 3: Operating Systems Introduction to Computer Hardware Systems
ai tools demonstartion for schools and inter college
Adobe Illustrator 28.6 Crack My Vision of Vector Design
How Creative Agencies Leverage Project Management Software.pdf
Digital Strategies for Manufacturing Companies
Navsoft: AI-Powered Business Solutions & Custom Software Development
SAP S4 Hana Brochure 3 (PTS SYSTEMS AND SOLUTIONS)
Internet Downloader Manager (IDM) Crack 6.42 Build 41
L1 - Introduction to python Backend.pptx
Why TechBuilder is the Future of Pickup and Delivery App Development (1).pdf
Upgrade and Innovation Strategies for SAP ERP Customers
Flood Susceptibility Mapping Using Image-Based 2D-CNN Deep Learnin. Overview ...
Wondershare Filmora 15 Crack With Activation Key [2025
AI in Product Development-omnex systems
ISO 45001 Occupational Health and Safety Management System
VVF-Customer-Presentation2025-Ver1.9.pptx
Online Work Permit System for Fast Permit Processing
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
CHAPTER 2 - PM Management and IT Context
How to Migrate SBCGlobal Email to Yahoo Easily
Lecture 3: Operating Systems Introduction to Computer Hardware Systems

App windows phone in c++

  • 1. App Windows Phone in C++ #CDays14 – Roma - 23, 24 e 25 Settembre 2014 Mirco Vanini info@proxsoft.it - @mircovanini http://mircovanini.blogspot.it/
  • 2. Grazie a #CDays14 – Roma - 23, 24 e 25 Settembre 2014 Sponsor
  • 3. Agenda • How & where C++ is supported • When and why to use C++ • Introduction to the Windows (Phone) Runtime • Sharing C++ code (demo) #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 4. How: Windows Phone C++ Support • Can be used in any Windows Phone App • Visual Studio Express 2012/3 for Windows Phone • Same C++ compiler & CRT used in Windows 8 • Subset of C++ 11 standard features #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 5. Sampling of C++ 11 Standard Features 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 #CDays14 – Roma - 23, 24 e 25 Settembre 2014 __func__ Decltype Range-based for-loop C99 preprocessor Right angle brackets override and final long long extern templates Minimal GC support Strongly typed enums nullptr Atomics C++11 Features in Visual C++ 11 Announcing the Visual C++ Compiler November 2013
  • 6. Why use C++ • Reusability: You have some legacy code around that you really don't want to rewrite but still use in your app • Portability: You want to use the code you're about to write on multiple platforms • Performance: You really are in need for these last bits of performance benefits and know what you're doing • Personal Preference: You are a developer who really favors C++ over e.g. C# or you have significantly better skills in C++ #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 7. Where you can use C++ • All Windows Phone 8 apps can use native code…  XAML apps (8.1)  XAML apps mixed with D3D and WinRT  Pure native D3D apps/games  C++ libraries: Dynamic Link Libraries, Static Libs  WinRT C++ Components • ...not all apps need to use native code WP 7.0 Silverlight #CDays14 – Roma - 23, 24 e 25 Settembre 2014 WP 7.5 Silverlight WP 8.0 Silverlight WP 8.1 Silverlight WP 8.1 WinRT
  • 8. Why stay on Windows Phone Silverlight? • Existing Code Investment • Existing Install Base • Not yet converged  Camera Lenses  VoIP  Lock Screen Wallpaper.  Clipboard API  Simple Sound Effects (XNA)  Run Under Lock Screen #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 9. Why Retarget to Windows Phone Silverlight 8.1? • Access to SD Cards • Geofencing • App to App SSO (Single Sign-On) • App to App sharing • And much more… #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 10. Windows Phone Runtime • Why learn about WinRT?  WinRT is used in the application model  C++ code called from XAML uses WinRT  Phone Platform APIs are built using WinRT  More Convergence  Latest Tooling  New Controls  Future Investment  Same ECMA-335 standard as .NET  Type-System Projections  CLR Projection  Framework Projection #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 11. A Closer Look at What's Available Direct3D with XAML" C++ application actually creates a C# main project and a separate Windows Runtime Component in C++. #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 12. Sharing C++ code #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 13. demo Sharing C++ code #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 14. Recap / Q&A Welcome back to C++! #CDays14 – Roma - 23, 24 e 25 Settembre 2014
  • 15. Q&A Tutto il materiale di questa sessione su http://www.communitydays.it/ Lascia il feedback su questa sessione dal sito, potrai essere estratto per i nostri premi! Seguici su Twitter @CommunityDaysIT Facebook http://facebook.com/cdaysit #CDays14 #CDays14 – Roma - 23, 24 e 25 Settembre 2014

Editor's Notes

  • #3: Slide da mostrare prima di iniziare la sessione – non rimuovere!
  • #16: Ultima slide, obbligatoria