728x90
반응형
BOOL IsEndWithChar(CString strCheckString, char endChar)
{
return (strCheckString.ReverseFind(endChar) == strCheckString.GetLength() - 1);
{
return (strCheckString.ReverseFind(endChar) == strCheckString.GetLength() - 1);
}
CString str = "C:\\Temp\\";
BOOL bEndOK = IsEndWithChar(str, '\\'); // TRUE
CString str = "C:\\Temp";
BOOK bEndNot = IsEndWithChar(str, '\\'); // FALSE
CString str = "C:\\Temp\\";
BOOL bEndOK = IsEndWithChar(str, '\\'); // TRUE
CString str = "C:\\Temp";
BOOK bEndNot = IsEndWithChar(str, '\\'); // FALSE
반응형
'MFC' 카테고리의 다른 글
소스 파일이 모듈을 빌드했을 때와 다릅니다 라는 메시지박스가 나타나는 현상 (0) | 2009.07.22 |
---|---|
[프로그램] 아스키(ASCII/EUC-KR) 파일을 UTF-8 로 인코딩 (35) | 2009.02.12 |
MFC CRect 클래스의 IntersectRect 함수에 대해서 (1) | 2009.02.02 |
TRACE (ANSI vs UNICODE) (0) | 2008.12.10 |
MFC 4.x 와 MFC 9.x 의 차이점 (스핀컨트롤 CreateEx) (0) | 2008.12.05 |