加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

我可以使用纯本机C为windows 8 metro编写应用程序吗?

发布时间:2020-12-16 03:44:57 所属栏目:百科 来源:网络整理
导读:对于本机c,我的意思是,不是托管c,不是cli,不是微软的任何特殊东西,我可以: 1)获得高性能 2)使用现有的c代码库和引擎 3)编写跨平台代码(例如,用于ios和android) 它不需要完全本机c,我可以使用托管代码来执行ui的事情,比如ios中的object-c和android中的java,
对于本机c,我的意思是,不是托管c,不是cli,不是微软的任何特殊东西,我可以:

1)获得高性能
2)使用现有的c代码库和引擎
3)编写跨平台代码(例如,用于ios和android)

它不需要完全本机c,我可以使用托管代码来执行ui的事情,比如ios中的object-c和android中的java,但是除了接口之外,我可以使用本机c代码吗?

解决方法

我建议你看一下这里的演讲: Using the Windows Runtime from C++,尤其是Herb Sutter的评论.我引用:

Please answer this question: If I decide to write C++ GUI application
in Metro style am I forced to use all these proprietary ref,sealed,
^,Platform::String^ extensions for GUI components or not?

@Tomas: No,you are not forced to use them. We are providing two
supported ways:

1) These language extensions (C++/CX).

2) A C++ template library (WRL),see Windows Kits8.0Includewinrtwrl as Yannick mentioned. WRL is a C++ library-based solution sort of along the lines of ATL,which offers what I think you’re looking for — template wrapper/convenience classes and explicit smart pointers and such.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读