随同Windows8引入的Windows Runtime(WinRT)的新WinRT,到底是怎么个东西?
面向CLR的程序可以调用,那非托管C++能调用吗?C能调用吗?
这个新Windows API和以前的老Windows API到底有啥区别?
请大神指点!最好提供参考文献。WinRTwindowsc++

解决方案 »

  1.   

    Windows provides two sets of APIs for building Windows Store apps: the Windows Runtime and the Windows Library for JavaScript.Windows Runtime These JavaScript, C#, Visual Basic, and C++ APIs provide access to all core platform features.The namespaces are exposed using API metadata format (Windows.winmd) similar to that used by the .NET framework (Ecma-335).Windows Library for JavaScript These JavaScript APIs provide controls, CSS styles, and helper functions that help you write object-oriented code. The WinJS namespace covers functionality that is similar to the Windows.UI.XAML namespaces in the Windows Runtime.When you reference these JavaScript files in your app, you must add base.js first, then ui.js.Windows Store apps only: Windows Store app APIs that are expressed as HTML or XAML elements are supported only in Windows Store apps, and are not supported in desktop apps or browsers.
      

  2.   

    写了若干Windows store app了,也没搞明白-
      

  3.   

    在我自己写程序实践看来,C++/C是调用不了WinRT的API的,但是面向.net的开发语言却可以非常方便的调用。个人见解:WinRT是新平台,不同于WinNT,但WinRT内部API内部还是调用了多数旧版Windows API的,特别是kenerl里面的函数。WinRT API的出现,是为了让.net程序员更方便的调用底层API。
    希望各位提出自己的见解。
      

  4.   


    没什么本质区别,都是库。 winrt 目前内部也是调用 win32 api ,以后也可能自立山头。
    winrt 采用 com 接口技术,也可以用 c 调用,不过很麻烦。
    winrt 针对商店应用,在沙箱里运行,不可以胡作非为。win32 api 则不设防