什么是CLI / C ++?它与“正常”c ++有什么不同? [英] What is CLI/C++ exactly? How does it differ from 'normal' c++?

查看:172
本文介绍了什么是CLI / C ++?它与“正常”c ++有什么不同?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

让我澄清我的意思是什么'正常'C ++首先 - 我正在阅读Walter Savitch的C ++中的问题解决。据我所知,这不是专门为Microsoft或Unix编写的。所以我的问题是,我在这本书(我用于我的普遍知识的c + +)中学习的是什么不同于我一直在阅读关于CLI C ++?



CLI C ++是我使用Visual C ++时会遇到的吗?我完全感到困惑。

解决方案

C ++ / CLI,(有时候C ++ / CLR)



它通常用于需要桥接一些本机代码(纯C ++)和托管代码的应用程序(如VB, C#,F#等)。



C ++ / CLI是一个与常规C ++不同的野兽。当人们说Visual C ++时,意义可以根据上下文而变化。有时,它们的意思是启用了公共语言运行时(CLR)层的C ++,其他时候它们只是简单的C ++。不幸的是,有很多不同的术语,有很多误解,但你能做什么?


Let me clarify what I mean by 'normal' C++ first- I'm currently reading Walter Savitch's "Problem Solving in C++". As far as I am aware this is not written specifically for Microsoft or Unix. So my question is, how does what I am learning in this book (which I am using for my universal knowledge-gaining of c++) differ from what I keep reading about CLI C++?

Is CLI C++ just what I would encounter if I used Visual C++? I'm totally confused.

解决方案

C++/CLI, (Also sometimes C++/CLR) refers to a language which is positioned somewhere in between native C++, and the .NET framework.

It's usually used for applications where you need to bridge some native code (pure C++) and managed code (Like VB, C#, F#, etc).

C++/CLI is a much different beast than regular C++ though. And when people say Visual C++, the meaning can vary depending on context. Sometimes they mean C++ with the common language runtime (CLR) layer enabled, other times they mean just plain C++. It's unfortunate that there's a lot of different terminology out there, and a lot of misnomers, but what can you do?

这篇关于什么是CLI / C ++?它与“正常”c ++有什么不同?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆