IT 취미생활.  
Front Page
Tag | Location | Media | Guestbook | Admin   
 
'Wince'에 해당하는 글(2)
2009.04.01   윈도우 임베디드 CE 프로젝트의 12가지 금기
2008.08.12   [Wince5.0] Debug Mode에서만 출력하는 디버깅 메시지


윈도우 임베디드 CE 프로젝트의 12가지 금기
Wince 5.0, windows mobile5.0, 6.0에서 어플리케이션
directshow를 통한 filter, isdbt, dvbt, meida application을 만들어 본
입장에서 무척이나 공감가는 내용이다.

그거 윈도우에서 개발하는거와 뭐가 달라라고 이야기 할수 있지만
다른점도 존재 한다는걸 알아야, 좀더 개발이 용이 하지 않나 싶다.


작년 기사지만 wince에서 뭔가를 개발하고 있다면,
또는 프로젝트를 진행하는 팀장이라면 읽고 생각해보면 좋겠다.

윈도우 임베디드 CE 프로젝트의 12가지 금기
( http://zdnet.co.kr/ArticleView.asp?artice_id=00000039176270 )


[Wince5.0] Debug Mode에서만 출력하는 디버깅 메시지

Wince5.0이나 WindowsMobile 같은 경우 MFC를 사용하지 않을경우
TRACE를 사용 할 수 없습니다.
따라서 아래처럼 구성해서 사용하시면 DebugMode에서만 동작하는
메시지를 만들 수 있습니다.



#ifdef _DEBUG
#define TRACE                Trace
#else
#define TRACE                ((void)0)
#endif

#ifdef _DEBUG
#define MAX_MSG_SIZE          1024        
void TRACE(const TCHAR *szString, ...)
{
 static TCHAR szBuffer[MAX_MSG_SIZE] = { 0 };
 va_list argptr = NULL;
 va_start( argptr, szString );
 vswprintf( szBuffer, szString, argptr );
 OutputDebugString( szBuffer );
 va_end( argptr );
}
#endif



ex)  TRACE( L"Service Name : %s\n", buffer);
       TRACE( L"WE_SERVICE_DISCOVERY_COMPLETE\n\r " );


고운하루 되세요.


BLOG main image
취미생활
 Notice
 Category
분류 전체보기 (191)
매일매일갱생 (83)
서버개발 (1)
임베디드개발 (12)
Programming (80)
Personal Projects (6)
유용한 프로그램 (0)
 TAGS
음식 벨소리 변경 군대 티스토리 초대장 Error Case warning DVB Wince5.0 Algorithm English ISDB-T 출장 english email Brazil Linux DVB-T Dshow MP3 Debug DirectShow 영어 이메일 퇴사 서태지 티스토리초대 C 1seg 개발자 M480 Windows Mobile6.0 It C++ project debugging 알고리즘 spam mail VC++ isdbt 미라지폰 Java
 Calendar
«   2024/04   »
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
 Recent Entries
 Recent Comments
 Recent Trackbacks
 Archive
 Link Site
zextor
괴짜 프로그래머의 일상사~@@
Gag & Peace, and more..
Kazakhstan Almaty.......
Min-A
Sadgarret
Steve Yoon's log
가슴 뛰는 삶을 살아라
오스틴 파워
GUI sin
melanie parker_Lady
제레미의 TV 2.0 이야기..
 Visitor Statistics
Total :
Today :
Yesterday :
rss