-
error C2259: CException cannot instantiate abstract classIT/Visual Studio 2011. 6. 14. 00:52
Visual Studio 6.0 에서 문제 없던 아래 코드가 VisualStudio 2005 이상 버전으로 컨버팅 시에 제목과 같은 에러가 나는 경우에 대한 해결책이다.
error C2259 : CException cannot instantiate abstract class
( Visual Studio 한글판에서의 에러 표시문구)
CException : 추상 클래스를 인스턴스화 할수 없습니다
해결방안
catch( CException ex ){
....
}
위와 같은 코드에서 에러가 날 것이다 .상기 코드를
catch( CException& ex){
...
}
이렇게 고쳐주면 된다.'IT > Visual Studio' 카테고리의 다른 글
응용 프로그램 구성이 올바르지 않기 때문에 이 응용프로그램을 시작하지 못했습니다. (10) 2011.06.14 string 관련 safe 함수 사용하기 (_s) (0) 2011.06.14 error c2039: 'ReadHuge' is not a member of 'CFile' (1) 2011.06.14 error C2663: 'ATL::CSimpleStringT<BaseType,t_bMFCDLL>::GetBuffer' : 2 overloads have no legal conversion for 'this' pointer (0) 2011.06.14 Visual Studio 2008 실행시 / 재설치시에 오류 해결방법 (0) 2011.04.28