티스토리 뷰
사용하다가 주로 격는 에러만 몇 가지 정리해 봅니다.
1. error C2065 : 'i' : undeclared identifier
변수를 잘못 선언하거나 선언하지 않은 경우 발생
2. error C2509 : 'OnLButtonDown' : member function not declared in 'XXXDlg'
함수를 잘못 선언하거나, 선언하지 않은 경우 발생
3. error LNK2001 : unresolved external symbol "protected: void_thiscall XXXDlg::OnLButton(....)"
함수를 선언만 해 놓고 소스 코드에 구현하지 않은 경우에 발생합니다.
4. MDI(다중도큐먼트)기반 프로그램에서 헤더파일을 인클루드 할 때에는 다음과 같이 도큐먼트 헤더가 뷰 헤더 위에 위치하도록 합니다.
#include "XXXDoc.h"
#include "XXXView.h"
(그렇지 않을 경우 오류 발생)
5. error C2601 : local function definitions are illegal
fatal error C1004 : unexpected end of file found
괄호가 제대로 닫히지 않은 경우 발생합니다.
6. error C2248 : cannot access protected member declared in class 'XXXDoc'
: see declaration of 'm_nXXX'
접근할 권한이 없는 함수나 변수에 접근하려 한경우(private ,protect 변수나 함수) 발생합니다.
대략적으로 이런 경우더군요.
1. error C2065 : 'i' : undeclared identifier
변수를 잘못 선언하거나 선언하지 않은 경우 발생
2. error C2509 : 'OnLButtonDown' : member function not declared in 'XXXDlg'
함수를 잘못 선언하거나, 선언하지 않은 경우 발생
3. error LNK2001 : unresolved external symbol "protected: void_thiscall XXXDlg::OnLButton(....)"
함수를 선언만 해 놓고 소스 코드에 구현하지 않은 경우에 발생합니다.
4. MDI(다중도큐먼트)기반 프로그램에서 헤더파일을 인클루드 할 때에는 다음과 같이 도큐먼트 헤더가 뷰 헤더 위에 위치하도록 합니다.
#include "XXXDoc.h"
#include "XXXView.h"
(그렇지 않을 경우 오류 발생)
5. error C2601 : local function definitions are illegal
fatal error C1004 : unexpected end of file found
괄호가 제대로 닫히지 않은 경우 발생합니다.
6. error C2248 : cannot access protected member declared in class 'XXXDoc'
: see declaration of 'm_nXXX'
접근할 권한이 없는 함수나 변수에 접근하려 한경우(private ,protect 변수나 함수) 발생합니다.
대략적으로 이런 경우더군요.
'전공 > MFC 삽질들..' 카테고리의 다른 글
[mfc] sdi, mdi 기반 초기 뷰창 없애기 (0) | 2011.08.23 |
---|---|
[MFC] WinDiff 유틸리티 (0) | 2011.08.18 |
[MFC] CWinThread 스레드 생성, 구동, 종료, 클래스나 구조체 넘기기 (7) | 2011.08.18 |
[mfc 오류] 선언되지 않은 식별자 _lpa, _convert, _acp (0) | 2011.08.03 |
MFC 상호 참조 (0) | 2011.06.15 |
댓글