ex)
CString oStr = "test";
int nLen = oStr.GetLength();
char* pStr = new char[nLen];
strcpy(pStr, oStr.GetBuffer(0));
TRACE(pStr);
'windows programming' 카테고리의 다른 글
How to convert char* to LPCWSTR? (0) | 2015.10.16 |
---|---|
fatal error C1010: unexpected end of file while looking for precompile (0) | 2008.03.04 |
Debug function (0) | 2008.02.29 |
CreateThread function (0) | 2008.02.13 |
dialog에 view 넣기 (0) | 2008.02.12 |