TCHAR szFilePath[MAX_PATH + 1];
GetModuleFileName(NULL, szFilePath, MAX_PATH);
(_tcsrchr(szFilePath, _T('\\')))[1] = 0; //删除文件名,只获得路径
CString str_url = szFilePath;
AfxMessageBox(str_url);

相关文章:

  • 2022-12-23
  • 2022-02-04
  • 2021-08-25
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-24
  • 2022-01-14
  • 2022-12-23
  • 2021-11-21
相关资源
相似解决方案