티스토리 뷰

사용하다가 주로 격는 에러만 몇 가지 정리해 봅니다.

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 변수나 함수) 발생합니다.

대략적으로 이런 경우더군요.
댓글
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
글 보관함