본문 바로가기
반응형

C++15

[에러] uuid.lib(ocidl_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module uuid.lib(comcat_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module 환경사항 Windows XP Service pack 3 + Visual studio 6.0 + Platform SDK Server2003 R2 사용 에러 메시지 uuid.lib(ocidl_i.obj) : fatal error LNK1103: debugging information corrupt; recompile module Error executing link.exe. 해결책 C:\Program Files\Microsoft Platform SDK\Lib 폴더의 uuid.lib 파일의 이름을 삭제 또는 변경해주면 됩니다. 2010. 7. 19.
c++ 현재시간 구하기 c++ 현재시간 C++ 현재시간을 구한다. 1 CString strToday; // 오늘 날짜를 받을 변수. 2 3 SYSTEMTIME time; // 시간 구조체. 4 ::ZeroMemory(reinterpret_cast(&time), sizeof(time)); // time 초기화. 5 6 ::GetLocalTime(&time); // 현재시간을 얻음. 7 strToday.Format (_T("%4d%02d%02d%02d%02d"), time.wYear ,time.wMonth ,time.wDay, time.wHour, time.wMinute); // 형식에 맞게 받음.. 8 2010. 5. 31.
GetWindowText 함수의 용도 GetWindowText 함수 사용의 예) 1 const nBuffSize = 512; // 버퍼의 사이즈를 정한다. 2 char szBuff[nBuffSize], buf2[nBuffSize]; // 버퍼공간을 선언한다. 3 m_wndResiNo1Edit.GetWindowText(szBuff, nBuffSize); //해당컨트롤 변수의 메소드로 가지고 있는 문자열을 받는다. 4 m_wndResiNo2Edit.GetWindowText(buf2, nBuffSize); //컨트롤변수로 해당 버퍼로 문자열을 가져온다. 영어로 된거 읽어라. MSDN 보다 좋은거는 없다. 영어공부도 하고 얼마나 좋냐~ CWnd::GetWindowText This method copies the CWnd caption title i.. 2010. 5. 26.
C++ GDI Font, Brush 생성과 삭제 C++ GDI Font, Brush 생성과 삭제 c++ GDI 객체생성 하는 방법과 삭제하는 방법입니다. Font 생성과 Brush 생성하고 객체를 해제를 꼭해주어야 합니다. 뭐 어려운 내용은 없고 폰트 생성 옵션과 브러쉬 생성 옵션을 숙지 하시면 됩니다. 1 ////////////////////////////////////////////////////////////////////////// 2 /** 3 @brief : CreateGDIObject 4 5 @date : 2010-05-25 오후 4:27:27 6 @author: Kwangho Park 7 @remark: GDI 생성. Font, Brush 등. 8 수정내역 9 -------------------------------------------.. 2010. 5. 25.
반응형