MFC CString to double 변환 사용법 (atof, wtof, tstof) MFC CString to double 변환 사용법 (atof, wtof, tstof) MFC에서 CString을 double로 변환하는 방법입니다. 아래엔 형 변환이 이뤄지는 3가지 예가 있는데, 공통적으로 CString은 LPCTSTR과 const char*로 먼저 변환이 됩니다. 변환된 char형의 자료를 함수들이 double로 변환을 하게 됩니다. 참조 - How do I convert a CString to a double in C++? [클릭] Knowing this, you can use atof(): CString thestring("13.37");double d = atof(thestring)....or for Unicode builds, _wtof(): CString thestring(.. 2017. 3. 26. 이전 1 다음