CString GetFileDir(const CString& csFile)
{
	int nLen = csFile.GetLength();
	for(int i=0; nLen-1; i>=0; i--)
	{
		if(csFile[i]=='\\'||csFile[i]=='/')
		{
			return csFile.Left(i+1);
		}
	}

	return "";
}
MFC windows ansi

相关文章:

  • 2021-12-16
  • 2022-12-23
  • 2021-10-19
  • 2021-08-09
  • 2021-12-16
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-17
  • 2021-09-21
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案