초보 개발자 로니강(Ronie.Kang)  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
'2008/07/11'에 해당하는 글(2)
2008/07/11   [MFC] Custom Control 사용시 주의 할 점
2008/07/11   Compiler Error C2099


[MFC] Custom Control 사용시 주의 할 점
문제 해결....

해당 Custom Control을 이용시 해당 Class 이름을 연결 해주어야 합니다.
이것을 몰랐네요 ㅜ0ㅜ


봉착 했던 문제
단순히 Resource View에 Custom Control을 추가 하고 프로그램을 실행 하는
것만으로도 아래와 같은 Output을 내보내며 프로그램이 실행 조차도 안된다.


실제 디버깅을 하여 따라가보면
OnInitialD~ () 들어 오지 않는다 헐...
왜 그럴까????

한참 고민하고 비스타 문제인가? 생각되어 회사 선배의 노트북에서
체크(vs 2008)를 해봤으나 역시 마찬가지 아래와 같은 메시지 뿐....

XP에서도 마찬가지였다.
오랜만에 찾은 데브피아 ~ !!
럭키 문제는 Custom Control을 사용할때 해당 Class 명을  연결 해줘야 한다는 것이다.

내가 UI 프로그래밍이 많이 약한 것을 잘 알고 있다.
ㅜ..ㅜ 너무 싫은게 아니라 모르는게 많은 것이다.
매일 매일 갱생이 필요 할 듯 하다.



Detected memory leaks!
Dumping objects ->
f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\occmgr.cpp(195) : {71} normal block at 0x01718248, 8 bytes long.
 Data: <        > E9 03 00 00 00 00 00 00
{70} normal block at 0x01718200, 8 bytes long.
 Data: <        > FF FF FF FF 00 00 00 00
Object dump complete.
The program '[3568] MultiListApplication.exe: Native' has exited with code 0 (0x0).
크리에이티브 커먼즈 라이선스
Creative Commons License
Tag : custom control, Error Case, Vista


Compiler Error C2099

Error Message

initializer is not a constant

This error is issued only by the C compiler and occurs only for non-automatic variables. The compiler initializes non-automatic variables at the start of the program and the values they are initialized with must be constant.

Example

The following sample generates C2099.

// C2099.c
int j;
int *p;
j = *p; // C2099 *p is not a constant

C2099 can also occur because the compiler is not able to perform constant folding on an expression under /fp:strict because the floating point precision environment settings (see _controlfp_s for more information) may differ from compile to run time.

When constant folding fails, the compiler invokes dynamic initialization, which is not allowed in C.

To resolve this error, compile the module as a .cpp file or simplify the expression.

For more information, see /fp (Specify Floating-Point Behavior).

The following sample generates C2099.

// C2099_2.c
// compile with: /fp:strict /c
float X = 2.0 - 1.0;   // C2099
float X2 = 1.0;   // OK


Also See - C/C++ Build Errors

http://msdn.microsoft.com/en-us/library/8x5x43k7(VS.80).aspx

크리에이티브 커먼즈 라이선스
Creative Commons License


BLOG main image
초보 개발자 로니의 스토리.... 삽질, 날샘, 야근, 개발, 자취생, 일상, 프로그래밍 개발, 등등등....
 Notice
 Category
분류 전체보기 (85)
매일매일갱생 (33)
Programming (46)
BroadCast (5)
Personal Projects (1)
 TAGS
Incheon platform builder Brazil 사진 브라질 산장 출장 독일 Wince5.0 build
 Calendar
«   2008/07   »
    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    
 Recent Entries
[Wince5.0]Platform build 에..
[출장] Brazil......
WinCE 5.0 커널 & 디바이스 구축
[디지털방송]ISDB-T 1seg 비교..
[나] ~~ 심심해서
여자와 자신감.....
[ISDB-T]Brazil Caption
[2007 09 19 독일] 에서 블로..
ETP 다녀 왔습니다.^0^
Little-Endian to Big-Endian
[Wince5.0] Debug Mode에서만..
 Recent Comments
헉 ㅜㅜ 개발용 블로..
Ronie.Kang - 08/04
어버버...ㅋㅋ
요츠바랑 - 08/04
MS Windows XP, ME,..
Ronie.Kang - 08/04
핸드폰에 운영체제가..
요츠바랑 - 08/02
^^ 오늘 하루종일 싱..
Ronie.Kang - 07/29
시디 사서 들어보는..
떡아이 - 07/29
고운하루 되세요^^*
기록자 - 07/21
아하 저는 수학만 나..
Ronie.Kang - 07/21
쩝....수학은 좋아하..
요츠바랑 - 07/18
아웃룩 2007에서는..
ronie.kang - 07/14
아...아웃룩을 통해..
요츠바랑 - 07/14
 Recent Trackbacks
다중포인터 읽기
.
 Archive
2008/08
2008/07
2008/06
2008/05
2008/04
2008/03
 Link Site
Gag & Peace, and more..
zextor
괴짜 프로그래머의 일상사~@@
 Visitor Statistics
Total : 7,008
Today : 27
Yesterday : 45
rss