Search code examples
c++visual-c++visual-c++-2005

New keywords and new type of pointers in Visual C++ 2005. What is managed C++?


Possible duplicates
What is gcnew?
What does the caret mean in C++/CLI?
Difference between managed c++ and c++

I am a advanced C++ programmer with g++. But currently I am working on Visual C++ 2005 doing Windows Forms Application programming . But I am finding it hard with its new terminology. For e.g. instead of new it has gcnew and

String ^ kind of thing. Can someone explain what is ^, similar to pointer?

Can I make Visual C++ work in the same way as normal C++ like g++ compiler? I also heard something about managed C++. What is that?


Solution

  • The gcnew and ^ values are managed C++ which is a different language to c++. You can use VS2005 as a normal C++ compiler by not using a project type from the CLR section of the new project window.