-
[MFC] CString 문자열의 Delete 함수프로그래밍/C++ 2016. 12. 20. 18:30
int Delete(
int nIndex,
int nCount = 1);해당 함수는 위와 같은 형태를 가짐.
nIndex 의 위치에서부터 nCount 만큼의 문자열을 지운다.
여기서 주의할 점은...
nIndex 에 마찬가지로 CString 에서 제공하는 GetLength 함수를 사용했을 경우엔 꼭 -1을 해주자.....ㅠ
하...!
https://msdn.microsoft.com/ja-jp/library/ms928979.aspx
'프로그래밍 > C++' 카테고리의 다른 글
[c++, VS2013] Visual Studio 2013 Error: c4996 this function or variable may be unsafe (0) 2019.05.24 [C++, rapidjson] AddMember 시의 형변환 문제 (0) 2019.05.14 [C++] std::string convert std::wstring (0) 2019.05.14 [MFC] CString <-> LPCSTR 변환 (0) 2016.12.24 C++ error LNK2038 관련 불일치가 검색되었습니다 라는 메시지. (0) 2016.12.14