본문 바로가기

Windows/MFC

CString to wchar_t (type casting)

[code]WCHAR wszPath[1000];
CString m_szBitmap;

1. mbstowcs(wszPath, (LPCTSTR)m_szBitmap, m_szBitmap.GetLength());

2. CStringPath.AllocSysString();[/code]

'Windows > MFC' 카테고리의 다른 글

자석 효과  (0) 2013.10.02
HWND_TOPMOST (최 상단으로 윈도우 위치 시키기)  (0) 2013.10.02
ATL and MFC String Conversion Macros (CString to WCHAR)  (0) 2013.10.02
GDI+ Setting (설정, 셋팅)  (0) 2013.10.02
비트맵 (bitmap)  (0) 2013.10.02