WinRT 作为 Win32 API 的替代品
互联网上有很多博客说 winrt 是 win32 api 的替代品。这是真的吗?甚至我读到为 Metro 应用程序开发的应用程序使用 winrt。那么我的理解是否正确,那些属于 Metro 应用程序的应用程序必须经过 winrt 和 winrt?经典应用程序必须通过 win32 api。请有人验证我的结论。
Over internet there are many blogs saying that winrt is a replacement of win32 api. IS this is really true? Even i read that application developed for Metro Application uses winrt. So do i understand correctly, those application which are metro application they has to go through winrt & classic applications has to go through win32 api's. Please someone validate my conclusions.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
免责声明:我没有以任何方式参与 Windows 8 的设计或实现,我只关注 Windows 8 的新闻。我不拥有特权信息。
微软已经明确表示WinRT并不是Win32的替代品,而是开发应用程序的另一种方式。也就是说,ARM 上没有 Win32 实现(至少第三方开发人员可以访问)。 ARM 上的 Windows 将仅支持 WinRT,而不支持 Win32,正如 Steve Sinofsky 所解释的 此处。
绝对正确。
Disclaimer: I am not involved in any way in the design or implementation of Windows 8, and I have only kept up on the Windows 8 news. I possess no privileged information.
Microsoft has made clear that WinRT is not a replacement for Win32, but another way to develop applications. That said, there is no Win32 implementation on ARM (at least that third-party developers can access). Windows on ARM will only support WinRT, and not Win32, as Steve Sinofsky explains here.
Absolutely correct.
Win32仍然存在。 WinRt 包装它们并将它们的类型转换为消费语言的本机类型。 C++ Metro 应用程序仍然可以访问一组有限的 Win32 API
Win32 still exists. WinRt wraps them and converts their types to be native for the consuming language. C++ metro application can still access a limited set of Win32 APIs
WinRT 基本上是 Win32 (COM) 的包装器,供 Metro Stype 应用程序(本机、CLR、Javascript 的投影)使用,这些应用程序专为沙盒环境而设计,主要用于触摸屏感知应用程序(尽管可以破解它们以在桌面)。 Metro 风格应用程序的一些 API 仍然使用经典的 COM API(例如 DirectX)。
那么,如果 WinRT 是基于 Win32 构建的,那么它如何取代 Win32 呢? ;-)
WinRT is basically a wrapper for Win32 (COM) to be consumed by Metro Stype applications (Projections for Native, CLR, Javascript) which are designed for a sandboxed environment mostly for Touch-Screen aware applications (although one can hack them to work on the desktop). Some APIs for Metro Style applications are still using the classic COM APIs (DirectX for example).
So, how can WinRT replace Win32 if it is built upon it? ;-)