//获取应用程序所在路径
CString CLogFile::GetFilePath()
{   
      CString m_FilePath;

      GetModuleFileName(NULL,m_FilePath.GetBufferSetLength(MAX_PATH+1),MAX_PATH);

      m_FilePath.ReleaseBuffer();

      int m_iPosIndex;

      m_iPosIndex = m_FilePath.ReverseFind('\\');

      m_FilePath = m_FilePath.Left(m_iPosIndex);

      return m_FilePath;
}

相关文章:

  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-01-10
  • 2021-12-09
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-21
  • 2022-12-23
  • 2022-01-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案