WinRT and build-in Windows 8 Apps

孤者浪人 提交于 2019-12-17 18:22:10

问题


Can non-Metro Windows apps (ex: Explorer) be built with the new WinRT, or must they still be Win32 based?


回答1:


I asked this during the 'Ask the Experts' session at //Build/. The answer was "Yes, within reason. Not all of the WinRT api's will function when called from desktop apps - for example any metro specific ones will fail. No explicit list of which ones work from desktop (non-metro) apps is available."

Edit: It appears that the documentation has been updated to provide a list of WinRT api's available from the desktop.




回答2:


From "Dev Center - Metro style apps"

A sticky posted by moderator on Thursday, November 03, 2011 1:16 AM

We have received a number of inquiries in this area. The documentation will be expanding as the Windows 8 project progresses to include more API specific details. It is possible to use WinRT from Desktop applications. WinRT APIs may be tied to Metro style apps, Desktop apps or potentially available to both. The documentation will list which environments (Desktop, Metro style or both) a given API works in. Note: Custom WinRT components are only supported in Metro style applications. They are not supported in Desktop applications.



来源:https://stackoverflow.com/questions/7475775/winrt-and-build-in-windows-8-apps

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!