Unicode 로 코딩하기 UNICODE <Convert> MBCS(수정중)
- Posted at 2008/12/23 09:13
- Posted by shiftkey
보호된 글 입니다. 비밀번호를 입력하세요.
보호된 글 입니다. 비밀번호를 입력하세요.
Posted by shiftkey
CString strTest(_T("가나다ABC아라요"));
TCHAR cTest[255];
swprintf(cTest,strTest.GetBuffer(strTest.GetLength()));
CString strTest;
char *cTest;
cTest=strTest.GetBuffer(strTest.GetLength());
int CString2Int(CString str) {
int val= 0; int tmp = 0; while (str.GetLength()) {
if (!isdigit(str[0])) return -1; tmp =str[0] - '0'; val= val* 10 + tmp ; str= str.Right(str.GetLength()-1); } return val;
}
Posted by shiftkey
Posted by shiftkey
Shiftkey가 살아가는 이런 저런 이야기......
- shiftkey
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |