Switch branches/tags
Nothing to show
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
..
Failed to load latest commit information.
HelloWorld
HelloWorld.sln
LICENSE
README.md

README.md

ChakraCore Hello-world Sample

This sample shows how to embed ChakraCore with JavaScript Runtime (JSRT) APIs, and complete the following tasks:

  1. Initializing the JavaScript runtime and creating an execution context.
  2. Running scripts and handling values.
  3. Printing out script results.

Requirements

This sample requires Windows 7 SP1 or above with either Visual Studio 2013 or 2015 with C++ support installed.

Build and run the sample

  1. Clone and build ChakraCore. You will need to grab ChakraCore.dll from Build\VcBuild\bin\[platform+output]\.
  2. Open HelloWorld.sln with Visual Studio.
  3. Copy ChakraCore.dll to the sample project's output directory.
  4. Build the sample by pressing F6 or using Build > Build Solution.
  5. Run the sample by pressing Ctrl+F5 or using Debug > Start Without Debugging.

Help us improve our samples

Help us improve out samples by sending us a pull-request or opening a GitHub Issue.

Copyright (c) Microsoft. All rights reserved. Licensed under the MIT license. See LICENSE file in the project root for full license information.