본문 바로가기

Code Habit

검색하기
Code Habit
프로필사진 코드베어

  • 분류 전체보기 (203)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • install
  • 영화
  • range
  • go
  • C
  • Sync
  • bitcoin
  • http
  • channel
  • mutex
  • JavaScript
  • tcp
  • window
  • Callback
  • Golang
  • 책
  • Close
  • File
  • c++
  • GO 언어
  • 리뷰
  • FOR
  • Python
  • package
  • go언어
  • Linux
  • windows
  • API
  • write
  • json
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록변환 (2)

Code Habit

c/c++ 문자열 변환 : 멀티바이트 <-> 유니코드 <-> UTF-8

* 유니코드 -> 멀티바이트 wchar_t strUni[256] = L"유니코드"; char strUtf8[256] = { 0, }; int nLen = WideCharToMultiByte(CP_UTF8, 0, strUni, lstrlenW(strUni), NULL, 0, NULL, NULL); WideCharToMultiByte(CP_UTF8, 0, strUni, lstrlenW(strUni), strUtf8, nLen, NULL, NULL); * 멀티바이트 -> 유니코드 wchar_t strUnicode[256] = { 0, }; char strMultibyte[256] = { 0, }; wcscpy_s(strUnicode, 256, L"유니코드"); int len = WideCharToMultiBy..

카테고리 없음 2021. 6. 29. 12:32
CString <-> TCHAR 상호변환

- CString -> TCHAR 1 2 CString str = _T("이진성"); TCHAR* psz = (TCHAR*)(LPCTSTR)str; - TCHAR -> CString 1 2 3 4 5 TCHAR* psz = _T("이진성"); CString str; str.Format("%s", psz); str = (LPCTSTR)psz;

카테고리 없음 2020. 9. 10. 00:46
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바