본문 바로가기

분류 전체보기

MFC FeaturePack CDockablePane 상태 관련 출처 : http://surfree.egloos.com/10681365 MS VS 2008부터 MFC Feature Pack을 지원합니다. Doc-View 형태의 응용프로그램을 만들면 MFC Feature Pack에서 제공하는 OutlookBar 와 Docking Pane를 이용할 수 있습니다. OutlookBar와 Docking Pane의 레이아웃은 자동으로 저장되고 로드 됩니다. 매우 편리한 기능이긴 하지만 또한 매우 불편한 기능입니다. 물론 이 레이아웃 상태에 대해서 커스터마이징을 할 수 있는 여지를 두었군요. MFC Feature Pack으로 Doc-VIew 응용프로그램을 생성할 시 기본 App 클래스는 CWinApp에서 CWinAppEx로 변경됩니다. CWinAppEx에서 이 상태 저장 및 복구.. 더보기
빅데이터 사회 출처 : 월간 마이더스 http://www.yonhapmidas.com/special_plan/specialreport/2013-03/130306231025_357167 더보기
불완전한 형식 'XXXXX' 에 대한 포인터를 삭제했습니다. 소멸자가 호출되지 않습니다 경고문 내용대로 어떠한 소멸자를 불러야 할지 모를 때 발생한다. 나 같은 경우에는 전방 선언을 하고 헤더 파일에서 소멸 할때 발생 하였다. // test.hclass test1;clase test{public:test1* test1;test(){};virturl ~test(){delete test1; 더보기
LPSTR <=> LPCTSTR 변환 Include File : LPSTR var1;...LPCTSTR var2 = CA2CT(var1); 반대로는 CT2A를 사용하면 된다. 더보기
error C2146: syntax error : missing ';' before identifier 'PVOID64' 위 에러의 원인은... DirectX 관련 라이브러리가 배포하는 basetsd.h 라는 파일 때문이다. 어떤 이유인지는 모르겠으나... DirectX 관련 라이브러리들 중 그들이 배포하는 basetsd.h 파일에는 POINTER_64 라는 키워드에 대한 define 이 빠져있기 때문이다. 에러가 발생하는 과정은....windows.h 에서 winnt.h 를 include 하고, winnt.h 가 PVOID64 를 정의하기 위해 typedef void * POINTER_64 PVOID64; 위와같이 typedef 를 하는데 POINTER_64 키워드 정의를 찾기위해 basetsd.h 파일을 include 한다.그런데, VisualStudio 등의 설치된 SDK의 include 에 있는 basetsd.h 에.. 더보기
[MFC] 실행파일 디렉토리 CString getLaunchDir() { char szDir[128]; char szDrive[256]; _splitpath(AfxGetApp()->m_pszHelpFilePath, szDrive, szDir, NULL, NULL); CString strLaunched; strLaunched.Format(_T("%s%s"), szDrive, szDir); return strLaunched; } 더보기
반올림, 올림, 내림 // 소수점 3번째 자리에서..double a,b,c,ac,af,ar; a=123.456789; b=123.499999; c=123.500001; ac=(ceil(a*100))/100; af=(floor(a*100))/100; ar=(floor((a*100)+0.5))/100; 더보기
각도를 0에서 360사이로 변경하는 방법 #include #include using namespace std; int main(){ const int maxLoop = 1000000000; { float fAngle = 90.f; const time_t startTime = time(0); for( int i = 0; i < maxLoop; ++i ) { volatile float clamppedAngle = fmod( fAngle, 360.f ); } const time_t endTime = time(0); cout 더보기
NMEA SentenceDescription$GPGGAGlobal positioning system fixed data$GPGLLGeographic position - latitude / longitude$GPGSAGNSS DOP and active satellites$GPGSVGNSS satellites in view$GPRMCRecommended minimum specific GNSS data$GPVTGCourse over ground and ground speed$GPGGA Sentence (Fix data)시간, 경도, 위도, 시스템의 품질, 사용된 위성 수, 고도의 정보를 포함한다.Example (signal not acquired): $GPGGA,235947.000,0000.0000,N,00000.00.. 더보기
Detected memory leaks! Detected memory leaks! 발생시 예를 들어Detected memory leaks! Dumping objects -> {264481} normal block at 0x03F4EB08, 580 bytes long. Data: 24 00 00 00 00 00 00 00 60 00 00 00 00 00 00 00 {264480} normal block at 0x03F4E7B0, 792 bytes long. Data: 09 00 0A 00 17 00 0E 00 13 00 0D 00 12 00 0F 00 이런 경우 프로그램 시작부분이나 함수가 메모리 릭이 발생 할 가능성이 있는 함수의 시작부분에AfxSetAllocStop(264481); 씩으로 호출후 디버깅을 시작하면 그 변수가 사용되는 곳에서 디.. 더보기