String ^ declaration in C ++

As far as I know, a C ++ line declaration follows a form:

std::string param;

I went through the code and realized that the line declaration is as follows:

System::String^ param;

Can anyone share the light with this declaration ?! Is this a Microsoft Visual C ++ string declaration or a special library that provides another alternative to using a C ++ string.

+5
source share
2 answers

This is the C ++ / CLI syntax of handle to an object on a managed heap.

+9
source

Microsoft , ++/CLI. Common Language Runtime (CLR) String ( , String #). C/++, Microsoft CLR String .

++/CLI , / ++ ( " " ) / CLR ( " " ). Microsoft CLR ++/CLI, # (, ), ( ).

, C ++ # ( ++/CLI, CLR P/Invokes) C/++ .

+8

All Articles