为什么C++/WinRT现在可以在Windows 7上运行?

huangapple go评论79阅读模式
英文:

Why can C++/WinRT run on Windows 7 now?

问题

根据这个问题,c++/winrt 不支持 Windows 7,因为 Windows 7 没有 WinRT;但是这个项目可以在 Windows 7 上运行,发生了什么?Windows 7 有了 WinRT 吗?WinRT 部署到了 Windows 7 上吗?

需要知道为什么现在 c++/winrt 可以在 Windows 7 上运行,谢谢。

英文:

"according to this question,c++/winrt doesn't support win7, because win7 got no winrt; but this project can run on win7, what happendd? win7 got winrt? winrt deployed to win7?"

need to known why c++/winrt can run on win7 now, thanks

答案1

得分: 0

"WinRT" 如在您链接的第一篇帖子中提到的是“Windows Runtime”的常用缩写。在Windows 7上不支持任何“Windows Runtime”样式的API。需要Windows 8或更高版本才能找到对任何“Windows Runtime” API 的支持。

在Windows 8早期,"Windows on ARM" 操作系统被称为 "Windows RT",有时人们将其缩写为 "WinRT",这增加了混淆。

"C++/WinRT 语言投影" 是一种使用 "Windows Runtime" API 的方式,也可以用于COM API。Kenny的项目演示了如何在运行在Windows 10上并在Windows 7上向下级运行的二进制中使用C++/WinRT。然而,"Windows Runtime" API 仍然不可用。只在Windows 7上使用COM。

英文:

"WinRT" as referenced in the first post you linked is a common short-hand for "Windows Runtime". There are no "Windows Runtime" style APIs supported on Windows 7. Windows 8 or later is required to find support for any "Windows Runtime" API.

> In the early days of Windows 8, the "Windows on ARM" OS was called "Windows RT" which people sometimes shortened to "WinRT" which just added to the confusion.

"C++/WinRT language projections" are a way to consume "Windows Runtime" APIs, and can also be used for COM APIs. Kenny's project demonstrates how you can use C++/WinRT in a binary that runs on Windows 10 and down-level on Windows 7. The "Windows Runtime" APIs are still not there. It's just using COM only on Windows 7.

huangapple
  • 本文由 发表于 2023年6月2日 14:51:04
  • 转载请务必保留本文链接:https://go.coder-hub.com/76387785.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定