블로그는 나의 힘!
[ Programing ]/API2009. 12. 24. 00:20
[ 메시지 박스 ] MessageBox( NULL, L"Body", L"Name", MB_OK );      
================================================================================== 
// 메시지 박스 출력
// L""은 LPCSTR 로 변환하는 매크로


- 뭐 다들 아시겠지만... 역시 문제는 정작 필요할 때 딱 까먹는다는 거~~~
Posted by Mister_Q
[ Programing ]/C++2009. 12. 24. 00:13

[ 최적 조건 리턴 ] 조건 없이 바로 조건값 리턴

inline const bool IsPlaying() { return ( STATUS_PLAY == m_eStatus ); }    
// if 사용 없이 바로 해당이 있으면 true, 없으면 flase 리턴한다.



 - 조건값 리턴 : return ( STATUS_PLAY == m_eStatus );
Posted by Mister_Q
[ Programing ]/C++2009. 12. 24. 00:12

[파일 저장하기]  pFile = fopen( "Critical.mfb", "wt" );    fprintf( pFile, "%d ", m_nState );    fclose( pFile );     
 ====================================================================================
 File* m_pFile = fopen( "Critical.mfb", "wt" ); 

 fprintf( m_pFile, "%d ", m_nState );
 fclose( m_pFile );

// 파일 저장 하기
// fprintf()로 저장할 데이터 넣는다.



- 파일 저장하기. fopen("대상", "wt"), fprintf(), fclose() 핵심이다.
Posted by Mister_Q