By using the Windows Runtime, you can create components (essentially DLLs) in C++, C#, or Visual Basic, and call into them in a simple and natural way from a Windows Store app that's built by using JavaScript. Although you can use JavaScript to access the Windows Runtime APIs, JavaScript cannot easily access native C++ libraries or .NET Framework class library functionality. For example, you might create a component in C++ that uses a third-party library to perform some computationally expensive operations. Or you might want to reuse some Visual Basic or C# code in your Windows Store app built for Windows using JavaScript. In either case, you can use the language of your choice to wrap that functionality in a Windows Runtime Component. Visual Studio features can help you create the component project and reference it from JavaScript.
-
Walkthrough: Creating a basic Windows Runtime component in C++ and calling it from JavaScript or C#
-
Walkthrough: Creating a simple component in C# or Visual Basic and calling it from JavaScript
-
Developing Bing Maps Trip Optimizer, a Windows Store app in JavaScript and C++
-
Creating Proxies and Stubs for Windows Runtime Components