PCTSTR pszExeFile = _tcsrchr(pe.szExeFile, TEXT('\\'));   请问大侠什么意思

解决方案 »

  1.   

    在 pe.szExeFile 中找字符 \  
    因为 \ 是转义符号, 所以, 要用它得要写两个
      

  2.   

    在 pe.szExeFile 中找字符 \
      

  3.   

    Scan a string for the last occurrence of a characterReturn ValueEach of these functions returns a pointer to the last occurrence of c in string, or NULL if c is not found.ResThe strrchr function finds the last occurrence of c (converted to char) in string. The search includes the terminating null character.wcsrchr and _mbsrchr are wide-character and multibyte-character versions of strrchr. The arguments and return value of wcsrchr are wide-character strings; those of _mbsrchr are multibyte-character strings. These three functions behave identically otherwise.TCHAR.H Routine :_tcsrchr