Trying to make a simple project using WinForms on C++ / CLI. I needed to create a class (I created it in .cpp file). And in this class I need to make a field with a string data type. But when trying to create it, an error appears: “String” identifier “is not defined”, although I used the #include in the shapehead. Also tried to prescribe the includ in the .cpp file itself, but still closes this error.
Answer 1, Authority 100%
Instead of
string name;
need to write
std :: string name;