Posts

Showing posts from April, 2015

CString to char *

//CString -> char * CString str; str = "Hello" ; char * pch = LPSTR ( LPCTSTR (str)); //char * --> CString char pch[] = "Hello" ; CString str; str.Format( "%s" , pch); 오늘 알아낸 내용. CString filename; char * filen; CT2CA filen(filename); >> 실패 -  CString => const char* CString FileName = _T("file.txt"); const char* Name; Name = (CStringA)FileName; - const char* -> CString  const char* Name = "test"; CString FileName; FileName = (CString)Name; CStringT type : Declaration CStringA        : An ANSI charcter type string with CRT support. CStringW       : A Unicode charater type string with CRT support. CString          : Both ANSI and Unicode charcter types with CRT support

맥북프로에서 프린트스크린 버튼 누르기(화면캡쳐)

Shift + Fn + F11 (맥북프로 키보드상에서) 외부 키보드는 안될지도 모름.