3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

windows8 ストアアプリでHTML/JSからC#/C++のAPIは呼び出せる?

Posted at

windows8.0及び8.1向けにストアアプリを作成する場合、
開発言語を選択する必要があります。

  • XAML(C# + C++)
  • HTML(JS)

UI部分はXAMLかHTMLのどちらかしか使えません。

しかし、WIndows Runtime Component化してしまえば、
HTML/JSからC#/C++で作成したAPIを呼び出すことが可能です。

例えば、下記のような構成が可能です。
[HTML/JS ストアアプリ] - [C# windows runtime component]

※過去に作ったC++/Cのnativeライブラリなども、windows runtime component化することにより、
 C#やJSから呼び出しが可能になります。
※ただし、windows runtimeを作成する場合、型制限などがあるため、
 注意してAPIを作る必要があります。

下記の記事が見やすいと思います。
http://blogs.msdn.com/b/windowsappdev_ja/archive/2012/08/13/windows-metro.aspx

windows runtime componentはwindows8アプリを作る上では非常に強力に使えると思いますので、
ぜひ使ってみてください。

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?