Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | ||||
| 4 | 5 | 6 | 7 | 8 | 9 | 10 |
| 11 | 12 | 13 | 14 | 15 | 16 | 17 |
| 18 | 19 | 20 | 21 | 22 | 23 | 24 |
| 25 | 26 | 27 | 28 | 29 | 30 | 31 |
Tags
- ClickOnce
- C/C++
- 블루투스 헤드셋
- php
- 데이터 전달
- 크래시로그
- plcrashreporter
- crashlog
- PDA
- JavaScript
- .net
- 자바스크립트
- MFC
- 설치제거
- VS2008
- EUC-KR
- 기념일관리
- phpmailer
- net
- Font
- API
- 한 번만 실행
- self-signed ssl
- C#
- 와이브로
- GDI
- docker
- protobuf-c
- M8200
- Antialiasing
Archives
- Today
- Total
~☆~ 우하하!!~ 개발블로그
[MFC] 특정 문자로 끝나는지 확인하는 방법 본문
반응형
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 |