Errors occur:
"You cannot declare a managed descryp in an unmanaged state"
"You cannot declare a managed nam in an unmanaged state"

Code (C ++ language):

class state { protected: System::String^ descryp; System::String^ nam; //Продолжение описания... }; 

How to fix? PS: It is inconvenient to use character arrays in my code.

  • do you have c ++ or c ++ / cli? - KoVadim
  • I have a c ++ (NOT cli) - Anonimus
  • then you can’t use System::String^ . most likely you need std::string - KoVadim
  • So confused. On the std::string he swears (does not exist) - Anonimus
  • #include <string> at the top added? - KoVadim

0