什么是CLI / C ++?它与“正常”c ++有什么不同? [英] What is CLI/C++ exactly? How does it differ from 'normal' 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屋!