fork download
  1. case IDSAVE:
  2. {
  3. int size = SendMessage(hEdit1, WM_GETTEXTLENGTH, 0, 0);
  4. std::wstring BuffStr;
  5. BuffStr.resize(size);
  6. GetWindowText(hEdit1, &BuffStr[0], size+1);
  7. bool flag = GetSaveFileName(&ofn);
  8. std::wofstream outFile(ofn.lpstrFile, std::ios_base::binary);
  9. outFile.write(&BuffStr[0], size+1);
  10. outFile.close();
  11. return true;
  12. }
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty