C++ RichTextBox保存文件()

C++ RichTextBox保存文件(),c++,richtextbox,C++,Richtextbox,如何将字符串作为路径传递到此处 void SaveLogFile() { logTxt->SaveFile(String::Concat (System::Environment::GetFolderPath (System::Environment::SpecialFolder::Personal),

如何将字符串作为路径传递到此处

 void SaveLogFile()
         {              
             logTxt->SaveFile(String::Concat
                 (System::Environment::GetFolderPath
                (System::Environment::SpecialFolder::Personal),                                         
                 "\\Testdoc.rtf"), RichTextBoxStreamType::RichNoOleObjs);
         }
我不知道如何从以下位置设置非特殊文件夹:

查看如何在此处创建
System::String^
。也要这样做

void SaveMyFile()
   {
      // Create a SaveFileDialog to request a path and file name to save to.
      SaveFileDialog^ saveFile1 = gcnew SaveFileDialog;

      // Initialize the SaveFileDialog to specify the RTF extention for the file.
      saveFile1->DefaultExt = "*.rtf";
      saveFile1->Filter = "RTF Files|*.rtf";

      // Determine whether the user selected a file name from the saveFileDialog. 
      if ( saveFile1->ShowDialog() == System::Windows::Forms::DialogResult::OK &&
         saveFile1->FileName->Length > 0 )
      {
         // Save the contents of the RichTextBox into the file.
         richTextBox1->SaveFile( saveFile1->FileName );
      }
   }