'C2664'에 해당되는 글 1건

  1. 2015.08.11 CString to const char*

error C2664: cannot convert argument 1 from 'CString' to 'const char *'


CString str = ---

int nLen = str.GetLength();

char *ch = new char[nLen];

  WideCharToMultiByte(CP_ACP, 0, str, -1, ch, nLen + 1, NULL, NULL);

  --- << ch 사용 >> ---

delete[] ch;

1 

글 보관함

카운터

Total : / Today : / Yesterday :
get rsstistory!