출처 : http://lowchen.tistory.com/288
1 2 3 4 5 6 | CString strTemp = "This is test."; char szTemp[256] = {0}; memcpy( szTemp, strTemp, strTemp.GetLength() ); memcpy( szTemp, strTemp.GetBuffer(0), strTemp.GetLength() ); | cs |
위의 두 memcpy는 같은 동작을 수행한다.
'Programming > MFC' 카테고리의 다른 글
VS2013 mfc static bitmap 추가시 버그 (error RC2108: expected numerical dialog constant) (0) | 2017.07.20 |
---|---|
[MFC] CString 문자열 파싱하기 (0) | 2017.07.11 |
[winapi] DC에 대해서...(GetDC / BeginPaint) (0) | 2017.07.04 |
timeSetEvent 64bit 오류 (0) | 2017.07.04 |
MFC app MANIFEST for x64 including x86 COMCTL32.dll (0) | 2017.07.04 |