Windows 8, C++ and Metro GUI samples?

后端 未结 3 651
半阙折子戏
半阙折子戏 2021-01-31 04:33

So I look at this\"Windows (Windows build keynote 1:42:56) And I just do not get it - what I can use to cre

3条回答
  •  时光说笑
    2021-01-31 05:05

    If you want to call C++ code the easiest way will be to use C++ with Component Extensions. This is just plain C++ that compiles to native code however it has a few extensions (reminiscent of C++/CLI) that let you use the WinRT COM components without worrying quite so much about the COM plumbing.

    With C++ and WinRT you can actually use XAML like the managed languages to define your user interface. It's pretty neat, see the documentation here:

    • Information on C++ component extensions

    I haven't looked into it but you may still be able to use P/Invoke or COM interop in the managed languages to call C++ code for a Metro style app however this is unconfirmed. Obviously a desktop app can do all the things it normally would.

提交回复
热议问题