구글 docs 에서
textcube 블로그로
블로그 내보내기 테스트를 해보았다.
잘 되네 ^^
2010년 1월 29일 금요일
2010년 1월 27일 수요일
파일 경로에서 파일명만 파싱하기
참고 : http://kurapa.com/content-a13342
참고2 : http://purelab.net/zbxe/1918
CString strPath; // 전체경로가 저장되어있는 변수명
CString strFileName; // 폴더위치를 저장할 변수명
int nPos = strPath.GetLength() - strPath.ReverseFind('\\') - 1;
strFileName= strPath.Right ( nPos );
2010년 1월 25일 월요일
CCriticalSection 선언 에러
http://mblog.devpia.com/link/?no=1168455
error C2146: syntax error : missing ';' before identifier 'g_cs'
#include <afxmt.h> 빼 먹으면..
error C2146: syntax error : missing ';' before identifier 'g_cs'
#include <afxmt.h> 빼 먹으면..
2010년 1월 15일 금요일
2010년 1월 7일 목요일
TRACE 한글 오류
_CrtDbgReport: String too long or IO Error
환경 : VS2008
VS2008 에서 TRACE 사용 시,
한글을 입력하면 다음과 같이 오류 메시지가 출력된다.
메시지 내용 : _CrtDbgReport: String too long or IO Error
이럴떄는
#include <locale.h> 를 추가하고,
초기화 함수 에서 다음 구문을 추가하면 된다
#ifdef _DEBUG
_tsetlocale(LC_ALL, _T("korean"));
#endif
예)
환경 : VS2008
VS2008 에서 TRACE 사용 시,
한글을 입력하면 다음과 같이 오류 메시지가 출력된다.
메시지 내용 : _CrtDbgReport: String too long or IO Error
이럴떄는
#include <locale.h> 를 추가하고,
초기화 함수 에서 다음 구문을 추가하면 된다
#ifdef _DEBUG
_tsetlocale(LC_ALL, _T("korean"));
#endif
예)
void Dlg::OnInitDialog()
{
///어쩌고 저쩌고
#ifdef _DEBUG
_tsetlocale(LC_ALL, _T("korean"));
#endif
}
2010년 1월 6일 수요일
피드 구독하기:
글 (Atom)