Please help me figure out what is wrong I can't find anything about this and haven't found the definition of this function C# keeps coming up and it doesn't apply.
    for (auto& p: fs::recursive_directory_iterator("c:"))
        {
            richTextBox1->AppendText("This works fine\n");
        }
    for (auto& p: fs::recursive_directory_iterator("c:"))
        {
            std::string pathString;
            fs::path path = p.path();
            pathString = path.string();
            //I don't know why it doesn't work like this VS won't compile if I try this. I have tried 
            //multiple different formats of string to no avail
            richTextBox1->AppendText(pathString);
        }
 
    