SlideShare uma empresa Scribd logo
1 de 34
Building and testing Windows 8
Metro Style Applications using
     C++,C# and JavaScript



                                    Radu Vunvulea
                             vunvulear@gmail.com
                 http://vunvulearadu.blogspot.com
Who am I?
        {
            “name” : “Radu Vunvulea,
            “company” : “iQuest”,
            “userType” : “enthusiastic”
            “technologies” : [ “.NET”, “JS”, “Azure”, “Web”,
                “Mobile”, “SL” ],
            “w8experience” : [ “2 LoB App”, “1 Travel App”],
            “blog” : “vunvulearadu.blogspot.com”,
            “email” : ”vunvulear@gmail.com”,
            “socialMedia” :
                {
                         “twitter” : “@RaduVunvulea”,
                         “fb” : “radu.vunvulea”
                }
        }
Agenda
•   WinRT
•   Windows 8 Architecture I
•   WinMD
•   Windows 8 Architecture II
•   Windows 8 Profiles
•   Mixing Components
•   Extensibilities points
•   Unit tests
•   Windows 8 App Package
•WinRT
• WinMD
• Chakra
• Windows Kernel Service
• Windows Runtime API
•   CLR, CRT, WinJS
•WinRT
• WinMD
• Chakra
• Windows Kernel Service
• Windows Runtime API
•   CLR, CRT, WinJS
What exactly is WinRT

• WinRT – Windows Runtime
• Allow us to build app that use Windows functionalities
• We can use any kind of language (managed or not)
   •   C#
   •   C++
   •   JavaScript
   •   Visual Basic
• Language projection for any kind of language
• Expose Windows functionalities
• Native for any supported language
What exactly is WinRT

• WinRT – Windows Runtime
• Allow us to build app that use Windows functionalities
• We can use any kind of language (managed or not)
   •   C#
   •   C++
   •   JavaScript
   •   Visual Basic
• Language projection for any kind of language
• Expose Windows functionalities
• Native for any supported language
Why WinRT is good

•   We don’t need to use COM and Win32 anymore – for “Metro Apps”
•   Easy access to Windows features
•   Object lifetime management
•   Same API on different languages
•   A lot of things are supported by default, we don’t need to write
    code for that:
    •   Image capture
    •   IO access
    •   Geolocation
    •   Contracts
    •   Networking
    •   … and so on
Why WinRT is good

•   We don’t need to use COM anymore
•   Easy access to Windows features
•   Object lifetime management
•   Same API on different languages
•   A lot of things are supported by default, we don’t need to write
    code for that:
     •   Image capture
     •   IO access
     •   Geolocation
     •   Contracts
     •   Networking
     •   … and so on
What about WinMD

•   WinMD – Windows Metadata
•   Describe what a WinRT component can do
•   Separate file, not included in the WinRT file
•   Compatible metadata - .NET ECMA-355 (not IDL)
     • This is the secret which make it possible a WinRT object to be
       consumed by
          - native C++
          - managed C#
          - JavaScript using Chakra JS Engine
Windows 8 and WinRT architecture
Windows 8 and WinRT Architecture
Windows 8 and WinRT Architecture

•   Only one CLR for all application (desktop and “Metro Apps”)
•   Different instances for desktop and “Metro Apps”
•   Only one IL for all applications (desktop and “Metro Apps”)
•   Only one MSIL for all applications
•   The same .NET Framework 4.5 is used for all applications, but it used
    different profiles
     •   .NET Client Profile – desktop
     •   .NET Metro Profile – “Metro Apps”
• Framework contains rules that define what parts are available for
  each profile
Windows 8 Profiles

                   .NET




               Silverlight

                       .NET   Windows
                               Phone

                 Windows
                  8 Apps
What should I use?

• JavaScript with HTML 5 and CSS
   + Well Known
   + IndexdDB
   + Dynamic language
   - WinRT not fully available


• C# with XAML
   + Full access to WinRT + some custom libraries
   + async/await, async calls supported at language level
   + Component written for SL or WP7 can be reused
   + Well known
   - XAML can be a hell sometimes


• C++
   + Very fast
   + DirectX (games)
How to mix different components



           C#                  C++




                 Java Script
How to mix different components



           C#                  C++




                                It is not possible


                 Java Script
How to mix different components

• .WinMD describes all the public API exposed by the component
• For JavaScript, the system will manage the class instances
• We don’t need to configure the project that will generate the shared
  component

• Be aware that you cannot have/use
   • XAML controllers in a Java Script app
   • Java Script components in a XAML/C# project
        •   Even if we have a WebView, we don’t have full access


• We can have a C# component that use XAML and use it in a C++
  application that use DirectX
How to create reusable C# components

• Our class that will be exposed have to:
   • Be sealed
   • Be public
   • No virtual
   • The class should not be empty
   • The class should not be abstract
   • All the input and output of collection types need to be
     interfaces (IList)
   • Interfaces are not supported in this moment to be exposed
   • Windows.Foundation.Metadata.DefaultOverload– for overloading
How to create reusable C# components

• Asynchronous calls are supported
• An asynchronous call need to return an IAsyncOperationTReturn>
   • We can obtain it calling “AsAsyncOperation()” method.
• A Task<T> is automatically converted into Promise
• Don’t forget to named your method accordingly
• Any method that’s take longer than 50ms
Demo
What about extensibility…

• It is an important feature for LoB applications

• Dynamic components loading (reflection)
• JS loaded and compiled at runtime

• MEF (Managed Extensibility Framework)
• Prims
What about extensibility…

• It is an important feature for LoB applications

• Dynamic components loading (reflection)
• JS loaded and compiled at runtime

• MEF (Managed Extensibility Framework)
• Prims

• Non-official response
   • Wait, have patience, in 6-9 months we may have something for
     you
Demo
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests

• What about Java Script?
  • Should we write unit tests for it?
  • Can I run unit tests from Visual Studio 2012?
  • Can I integrate Java Script unit tests to the build machine?
Unit tests
• For code written in C/C++, C# and Visual Basic we have build in
  support for unit tests

• What about Java Script?
  • Should we write unit tests for it? YES
  • Can I run unit tests from Visual Studio 2012? YES
  • Can I integrate Java Script unit tests to the build machine? YES


• There are a lot of frameworks and plugins for this:
   • Chutzpah Test Adapter for Visual Studio 2012
   • QUnit
Demo
Windows 8 App Package

• A package contains all the files that are required by our application
  to run
• An update of our app represent a new version of package that
  contains all the files (not the delta)
• Each package is sign by the author using a unique key
• A package can be created using
    •   Visual Studio
    •   MakeAppX.exe (command line)
Windows 8 App Package

• Every package contains a Package Manifest

• Package Manifest:
   • Package identity
       (package name, version, publisher, processor architecture, resource ID)
   • Package properties
       information about package
   • Capabilities
       a list of application capabilities
   • Extensions
       used to communicate with system and other application
   • Visual elements
       default tile, logo images, background color, and splash screen
Windows 8 App Package

• Each package contains a Power Shell script
• A normal user can install a package only from Marketplace
• Using a developer account any package can be installed on a
  computer (even the packages that are not signed)

• Corporate devices – Windows 8 Enterprise
   • Windows 8 App packages that can be pushed from the
     corporate network without the need to publish the application
     on the Marketplace.
Demo
THE END




                        Radu Vunvulea
                 vunvulear@gmail.com
     http://vunvulearadu.blogspot.com

Mais conteúdo relacionado

Mais procurados

Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android DevelopmentHayi Nukman
 
Targeting Android with Qt
Targeting Android with QtTargeting Android with Qt
Targeting Android with QtEspen Riskedal
 
Testing cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTestTesting cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTestMicael Gallego
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET PlatformAlex Thissen
 
Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)jbandi
 
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased basedMicrofrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased basedVinci Rufus
 
Customize UI with Protocols
Customize UI with ProtocolsCustomize UI with Protocols
Customize UI with ProtocolsPofat Tseng
 
Confessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy languageConfessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy languageVictor Trakhtenberg
 
C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8Chris Hardy
 
Portable Class Library Deep Dive
Portable Class Library Deep DivePortable Class Library Deep Dive
Portable Class Library Deep DiveJames Montemagno
 
Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?jbandi
 
Kann JavaScript elegant sein?
Kann JavaScript elegant sein?Kann JavaScript elegant sein?
Kann JavaScript elegant sein?jbandi
 
How to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDKHow to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDKMirco Vanini
 
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel ZikmundKarel Zikmund
 

Mais procurados (18)

Begining Android Development
Begining Android DevelopmentBegining Android Development
Begining Android Development
 
Targeting Android with Qt
Targeting Android with QtTargeting Android with Qt
Targeting Android with Qt
 
Testing cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTestTesting cloud and kubernetes applications - ElasTest
Testing cloud and kubernetes applications - ElasTest
 
TypeScript Introduction
TypeScript IntroductionTypeScript Introduction
TypeScript Introduction
 
.NET Core: a new .NET Platform
.NET Core: a new .NET Platform.NET Core: a new .NET Platform
.NET Core: a new .NET Platform
 
Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)Professional JavaScript Development (An Introduction for Java Developers)
Professional JavaScript Development (An Introduction for Java Developers)
 
Microfrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased basedMicrofrontends Monoreops & Trunkbased based
Microfrontends Monoreops & Trunkbased based
 
Customize UI with Protocols
Customize UI with ProtocolsCustomize UI with Protocols
Customize UI with Protocols
 
Confessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy languageConfessions of a java developer that fell in love with the groovy language
Confessions of a java developer that fell in love with the groovy language
 
Manas
ManasManas
Manas
 
Dot Net Introduction
Dot Net IntroductionDot Net Introduction
Dot Net Introduction
 
C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8C# On The iPhone with MonoTouch at DDD8
C# On The iPhone with MonoTouch at DDD8
 
Portable Class Library Deep Dive
Portable Class Library Deep DivePortable Class Library Deep Dive
Portable Class Library Deep Dive
 
Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?Java & JavaScript: Best Friends?
Java & JavaScript: Best Friends?
 
Kann JavaScript elegant sein?
Kann JavaScript elegant sein?Kann JavaScript elegant sein?
Kann JavaScript elegant sein?
 
How to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDKHow to modernise WPF and Windows Forms applications with Windows Apps SDK
How to modernise WPF and Windows Forms applications with Windows Apps SDK
 
Netbeans IDE & Platform
Netbeans IDE & PlatformNetbeans IDE & Platform
Netbeans IDE & Platform
 
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
.NET MeetUp Amsterdam 2017 - .NET Standard -- Karel Zikmund
 

Semelhante a Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script

Dot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement onlineDot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement onlineGaruda Trainings
 
Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]vaishalisahare123
 
Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)Tamir Dresher
 
Developing a mobile cross-platform library
Developing a mobile cross-platform libraryDeveloping a mobile cross-platform library
Developing a mobile cross-platform libraryKostis Dadamis
 
Windows 8 Development Stack
Windows 8 Development StackWindows 8 Development Stack
Windows 8 Development StackDev2
 
.NET? MonoDroid Does
.NET? MonoDroid Does.NET? MonoDroid Does
.NET? MonoDroid DoesKevin McMahon
 
.Net overviewrajnish
.Net overviewrajnish.Net overviewrajnish
.Net overviewrajnishRajnish Kalla
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxGaytriMate
 
Overview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxOverview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxdebasish duarah
 
.Net overview
.Net overview.Net overview
.Net overviewmadydud
 
321 codeincontainer brewbox
321 codeincontainer brewbox321 codeincontainer brewbox
321 codeincontainer brewboxLino Telera
 
Porting tometro
Porting tometroPorting tometro
Porting tometrodogra09
 
Titanium appcelerator kickstart
Titanium appcelerator kickstartTitanium appcelerator kickstart
Titanium appcelerator kickstartAlessio Ricco
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with javassuser471dfb
 
Native App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual StudioNative App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual StudioXamarin
 

Semelhante a Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script (20)

Dot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement onlineDot net Online Training | .Net Training and Placement online
Dot net Online Training | .Net Training and Placement online
 
Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]Introduction to dot net framework by vaishali sahare [katkar]
Introduction to dot net framework by vaishali sahare [katkar]
 
Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)Building apps with common code for windows 8 and windows phone 8 (WP8)
Building apps with common code for windows 8 and windows phone 8 (WP8)
 
Developing a mobile cross-platform library
Developing a mobile cross-platform libraryDeveloping a mobile cross-platform library
Developing a mobile cross-platform library
 
My androidpresentation
My androidpresentationMy androidpresentation
My androidpresentation
 
Cross-Platform Development
Cross-Platform DevelopmentCross-Platform Development
Cross-Platform Development
 
Windows 8 Development Stack
Windows 8 Development StackWindows 8 Development Stack
Windows 8 Development Stack
 
.NET? MonoDroid Does
.NET? MonoDroid Does.NET? MonoDroid Does
.NET? MonoDroid Does
 
.Net overviewrajnish
.Net overviewrajnish.Net overviewrajnish
.Net overviewrajnish
 
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptxLearn the java basic programming with example and syntaxchapter1-part-b.pptx
Learn the java basic programming with example and syntaxchapter1-part-b.pptx
 
Overview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptxOverview of Adroid Architecture.pptx
Overview of Adroid Architecture.pptx
 
.Net overview
.Net overview.Net overview
.Net overview
 
321 codeincontainer brewbox
321 codeincontainer brewbox321 codeincontainer brewbox
321 codeincontainer brewbox
 
Introduction to .NET Framework
Introduction to .NET FrameworkIntroduction to .NET Framework
Introduction to .NET Framework
 
Porting tometro
Porting tometroPorting tometro
Porting tometro
 
Microsoft .Net Technology
Microsoft .Net TechnologyMicrosoft .Net Technology
Microsoft .Net Technology
 
Titanium appcelerator kickstart
Titanium appcelerator kickstartTitanium appcelerator kickstart
Titanium appcelerator kickstart
 
Android Architecture design programming with java
Android Architecture design programming with javaAndroid Architecture design programming with java
Android Architecture design programming with java
 
Android - Anroid Pproject
Android - Anroid PprojectAndroid - Anroid Pproject
Android - Anroid Pproject
 
Native App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual StudioNative App Development for iOS, Android, and Windows with Visual Studio
Native App Development for iOS, Android, and Windows with Visual Studio
 

Último

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxKatpro Technologies
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxOnBoard
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxMalak Abu Hammad
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Allon Mureinik
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsEnterprise Knowledge
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 

Último (20)

Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptxFactors to Consider When Choosing Accounts Payable Services Providers.pptx
Factors to Consider When Choosing Accounts Payable Services Providers.pptx
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptxMaximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
The Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptxThe Codex of Business Writing Software for Real-World Solutions 2.pptx
The Codex of Business Writing Software for Real-World Solutions 2.pptx
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)Injustice - Developers Among Us (SciFiDevCon 2024)
Injustice - Developers Among Us (SciFiDevCon 2024)
 
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI SolutionsIAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
 
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 

Radu vunvulea building and testing windows 8 metro style applications using c++,c# and java script

  • 1. Building and testing Windows 8 Metro Style Applications using C++,C# and JavaScript Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com
  • 2. Who am I? { “name” : “Radu Vunvulea, “company” : “iQuest”, “userType” : “enthusiastic” “technologies” : [ “.NET”, “JS”, “Azure”, “Web”, “Mobile”, “SL” ], “w8experience” : [ “2 LoB App”, “1 Travel App”], “blog” : “vunvulearadu.blogspot.com”, “email” : ”vunvulear@gmail.com”, “socialMedia” : { “twitter” : “@RaduVunvulea”, “fb” : “radu.vunvulea” } }
  • 3. Agenda • WinRT • Windows 8 Architecture I • WinMD • Windows 8 Architecture II • Windows 8 Profiles • Mixing Components • Extensibilities points • Unit tests • Windows 8 App Package
  • 4. •WinRT • WinMD • Chakra • Windows Kernel Service • Windows Runtime API • CLR, CRT, WinJS
  • 5. •WinRT • WinMD • Chakra • Windows Kernel Service • Windows Runtime API • CLR, CRT, WinJS
  • 6. What exactly is WinRT • WinRT – Windows Runtime • Allow us to build app that use Windows functionalities • We can use any kind of language (managed or not) • C# • C++ • JavaScript • Visual Basic • Language projection for any kind of language • Expose Windows functionalities • Native for any supported language
  • 7. What exactly is WinRT • WinRT – Windows Runtime • Allow us to build app that use Windows functionalities • We can use any kind of language (managed or not) • C# • C++ • JavaScript • Visual Basic • Language projection for any kind of language • Expose Windows functionalities • Native for any supported language
  • 8. Why WinRT is good • We don’t need to use COM and Win32 anymore – for “Metro Apps” • Easy access to Windows features • Object lifetime management • Same API on different languages • A lot of things are supported by default, we don’t need to write code for that: • Image capture • IO access • Geolocation • Contracts • Networking • … and so on
  • 9. Why WinRT is good • We don’t need to use COM anymore • Easy access to Windows features • Object lifetime management • Same API on different languages • A lot of things are supported by default, we don’t need to write code for that: • Image capture • IO access • Geolocation • Contracts • Networking • … and so on
  • 10. What about WinMD • WinMD – Windows Metadata • Describe what a WinRT component can do • Separate file, not included in the WinRT file • Compatible metadata - .NET ECMA-355 (not IDL) • This is the secret which make it possible a WinRT object to be consumed by - native C++ - managed C# - JavaScript using Chakra JS Engine
  • 11. Windows 8 and WinRT architecture
  • 12. Windows 8 and WinRT Architecture
  • 13. Windows 8 and WinRT Architecture • Only one CLR for all application (desktop and “Metro Apps”) • Different instances for desktop and “Metro Apps” • Only one IL for all applications (desktop and “Metro Apps”) • Only one MSIL for all applications • The same .NET Framework 4.5 is used for all applications, but it used different profiles • .NET Client Profile – desktop • .NET Metro Profile – “Metro Apps” • Framework contains rules that define what parts are available for each profile
  • 14. Windows 8 Profiles .NET Silverlight .NET Windows Phone Windows 8 Apps
  • 15. What should I use? • JavaScript with HTML 5 and CSS + Well Known + IndexdDB + Dynamic language - WinRT not fully available • C# with XAML + Full access to WinRT + some custom libraries + async/await, async calls supported at language level + Component written for SL or WP7 can be reused + Well known - XAML can be a hell sometimes • C++ + Very fast + DirectX (games)
  • 16. How to mix different components C# C++ Java Script
  • 17. How to mix different components C# C++ It is not possible Java Script
  • 18. How to mix different components • .WinMD describes all the public API exposed by the component • For JavaScript, the system will manage the class instances • We don’t need to configure the project that will generate the shared component • Be aware that you cannot have/use • XAML controllers in a Java Script app • Java Script components in a XAML/C# project • Even if we have a WebView, we don’t have full access • We can have a C# component that use XAML and use it in a C++ application that use DirectX
  • 19. How to create reusable C# components • Our class that will be exposed have to: • Be sealed • Be public • No virtual • The class should not be empty • The class should not be abstract • All the input and output of collection types need to be interfaces (IList) • Interfaces are not supported in this moment to be exposed • Windows.Foundation.Metadata.DefaultOverload– for overloading
  • 20. How to create reusable C# components • Asynchronous calls are supported • An asynchronous call need to return an IAsyncOperationTReturn> • We can obtain it calling “AsAsyncOperation()” method. • A Task<T> is automatically converted into Promise • Don’t forget to named your method accordingly • Any method that’s take longer than 50ms
  • 21. Demo
  • 22. What about extensibility… • It is an important feature for LoB applications • Dynamic components loading (reflection) • JS loaded and compiled at runtime • MEF (Managed Extensibility Framework) • Prims
  • 23. What about extensibility… • It is an important feature for LoB applications • Dynamic components loading (reflection) • JS loaded and compiled at runtime • MEF (Managed Extensibility Framework) • Prims • Non-official response • Wait, have patience, in 6-9 months we may have something for you
  • 24. Demo
  • 25. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests
  • 26. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests • What about Java Script? • Should we write unit tests for it? • Can I run unit tests from Visual Studio 2012? • Can I integrate Java Script unit tests to the build machine?
  • 27. Unit tests • For code written in C/C++, C# and Visual Basic we have build in support for unit tests • What about Java Script? • Should we write unit tests for it? YES • Can I run unit tests from Visual Studio 2012? YES • Can I integrate Java Script unit tests to the build machine? YES • There are a lot of frameworks and plugins for this: • Chutzpah Test Adapter for Visual Studio 2012 • QUnit
  • 28. Demo
  • 29. Windows 8 App Package • A package contains all the files that are required by our application to run • An update of our app represent a new version of package that contains all the files (not the delta) • Each package is sign by the author using a unique key • A package can be created using • Visual Studio • MakeAppX.exe (command line)
  • 30. Windows 8 App Package • Every package contains a Package Manifest • Package Manifest: • Package identity (package name, version, publisher, processor architecture, resource ID) • Package properties information about package • Capabilities a list of application capabilities • Extensions used to communicate with system and other application • Visual elements default tile, logo images, background color, and splash screen
  • 31. Windows 8 App Package • Each package contains a Power Shell script • A normal user can install a package only from Marketplace • Using a developer account any package can be installed on a computer (even the packages that are not signed) • Corporate devices – Windows 8 Enterprise • Windows 8 App packages that can be pushed from the corporate network without the need to publish the application on the Marketplace.
  • 32. Demo
  • 33.
  • 34. THE END Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com

Notas do Editor

  1. Chakra – JSEngine, communicareprincerucir, princanale, o comunicareprinenergieintreoricefel de canale
  2. Chakra – JSEngine, communicareprincerucir, princanale, o comunicareprinenergieintreoricefel de canale
  3. COM
  4. COM
  5. COM
  6. COM
  7. COM
  8. COM
  9. COM
  10. COM
  11. COM
  12. COM
  13. COM
  14. COM
  15. COM
  16. COM
  17. COM
  18. COM
  19. COM
  20. COM
  21. COM
  22. COM
  23. COM
  24. COM
  25. COM
  26. COM
  27. COM
  28. COM
  29. COM