본문 바로가기

Programming/C++, MFC

(42)
728x90
반응형

C++, MFC。형 변환(Type Casting) - 문자형 to 정수형, 실수형 # 유니코드(Unicode) 기반 CString sNum = _T("123");// CString to int : %dint nNum1 = _ttoi(sNum);// CString to __int64 : %I64d__int64 nNum = _ttoi64(sNum);// CString to doubledouble nDoNum1 = _wtof(sNum);double nDoNum2 = _ttof(sNum); # 멀티바이트(Multibyte) 기반 // CString to int : %dint nNum2 = atoi("123");// CString to doubledouble nDoNum3 = atof("123");
Error。error C1083: 포함 파일을 열 수 없습니다. 'stdint.h': No such file or directory 1>c:\program files (x86)\microsoft visual studio 9.0\vc\include\client\clientquery.h(44) : fatal error C1083: 포함 파일을 열 수 없습니다. 'stdint.h': No such file or directory # 해결 방법 stdint.h 파일 다운로드 후 설치된 Visual Studio의 include 폴더에 추가 https://code.google.com/archive/p/msinttypes/ Google Code Archive - Long-term storage for Google Code Project Hosting. code.google.com
Error。LINK : fatal error LNK1158: 'mt.exe'을(를) 실행할 수 없습니다. LINK : fatal error LNK1158: 'mt.exe'을(를) 실행할 수 없습니다. # 해결 방법 설치된 Visual Studio의 bin 폴더에 mt.exe 파일 추가
Error。error C2146, C4430, C2039, C2660 1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(431) : error C2146: 구문 오류 : ';'이(가) 'rgclsidAllowed' 식별자 앞에 없습니다. 1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(431) : error C4430: 형식 지정자가 없습니다. int로 가정합니다. 참고: C++에서는 기본 int를 지원하지 않습니다. 1>c:\program files (x86)\microsoft visual studio 9.0\vc\atlmfc\include\atlcom.h(431) : error C44..
Error。LINK : fatal error LNK1000: Internal error during IncrBuildImage LINK : fatal error LNK1000: Internal error during IncrBuildImage # 해결 방법 Microsoft Visual Studio 2008 서비스 팩1 설치(Visual Studio 버전, 언어 맞춰 다운) 더보기 https://www.microsoft.com/ko-kr/download/details.aspx?id=13276 Download Microsoft Visual Studio 2008 서비스 팩 1(iso) from Official Microsoft Download Center 중요! 아래에서 언어를 선택하면 전체 페이지 내용이 해당 언어로 신속하게 변경됩니다. 독일어러시아어스페인어영어이탈리아어일본어중국어(간체)중국어(번체)프랑스어한국어 다운로드 이 ww..
C++, MFC。형 변환(Type Casting) - 문자형 to 문자형 1. CString → wchar_t* CString sMessage = _T("TEST");USES_CONVERSION;wchar_t *cData = T2W(sMessage); // 1const wchar_t *cData = T2W(sMessage); // 2const wchar_t *cData = T2W(sMessage.GetBuffer()); // 3 형 변환(Type Casting) - 문자열 변환 매크로(USES_CONVERSION) 링크>[Programming/C++, MFC] - C++, MFC。형 변환(Type Casting) - 문자열 변환 매크로(USES_CONVERSION) 2. CString ↔ c..
C++, MFC。자료형 보호되어 있는 글입니다.
C++, MFC。중단점과 추적점 1. 중단점(F9) 프로세스의 실행을 일시적으로 멈추게 하는 위치를 명시 2. 추적점 프로그램 코드 흐름 파악 # 변수값 출력(중괄호 사용) - { 변수 }
728x90
반응형