// stdafx.h : ÀÚÁÖ »ç¿ëÇÏÁö¸¸ ÀÚÁÖ º¯°æµÇÁö´Â ¾Ê´Â // Ç¥ÁØ ½Ã½ºÅÛ Æ÷ÇÔ ÆÄÀÏ ¹× ÇÁ·ÎÁ§Æ® °ü·Ã Æ÷ÇÔ ÆÄÀÏÀÌ // µé¾î ÀÖ´Â Æ÷ÇÔ ÆÄÀÏÀÔ´Ï´Ù. // #pragma once #define _AFXDLL // ¾Æ·¡ ÁöÁ¤µÈ Ç÷§Æû¿¡ ¿ì¼±ÇÏ´Â Ç÷§ÆûÀ» ´ë»óÀ¸·Î ÇÏ´Â °æ¿ì ´ÙÀ½ Á¤ÀǸ¦ ¼öÁ¤ÇϽʽÿÀ. // ´Ù¸¥ Ç÷§Æû¿¡ »ç¿ëµÇ´Â ÇØ´ç °ªÀÇ ÃֽŠÁ¤º¸´Â MSDNÀ» ÂüÁ¶ÇϽʽÿÀ. #ifndef WINVER // Windows XP À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define WINVER 0x0400 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINNT // Windows XP À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINNT 0x0400 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINDOWS // Windows 98 À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINDOWS 0x0400 // Windows Me ÀÌ»ó¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #define WIN32_LEAN_AND_MEAN // °ÅÀÇ »ç¿ëµÇÁö ¾Ê´Â ³»¿ëÀº Windows Çì´õ¿¡¼­ Á¦¿ÜÇÕ´Ï´Ù. // ¾Æ·¡ Ç÷¡±×´Â ±âÁ¸¿¡ »ç¿ëÇÏ´ø String°ü·Ã ÇÔ¼öµéµµ ±×´ë·Î µÎµµ·Ï ÇѰÍÀÓ. #define STRSAFE_NO_DEPRECATE /// ÃßÈÄ¿¡ ¾ø¾ÖÀÚ #define _CRT_SECURE_NO_WARNINGS #define _CRT_NON_CONFORMING_SWPRINTFS /// ºñÇ¥ÁØ È®ÀåÀ» »ç¿ëÇß½À´Ï´Ù : ±¸Á¶Ã¼/°ø¿ë ±¸Á¶Ã¼ÀÇ À̸§ÀÌ ¾ø½À´Ï´Ù. #pragma warning( disable: 4201 ) // º¹»ç »ý¼ºÀÚ¸¦ »ý¼ºÇÏÁö ¸øÇß½À´Ï´Ù. #pragma warning( disable: 4511 ) // ÄÄÆÄÀÏ·¯¿¡¼­ ÁÖ¾îÁø Ŭ·¡½º¿¡ ´ëÇÑ ´ëÀÔ ¿¬»êÀÚ¸¦ »ý¼ºÇÒ ¼ö ¾ø½À´Ï´Ù. #pragma warning( disable: 4512 ) // Á¶°Ç½ÄÀÌ »ó¼öÀÔ´Ï´Ù. #pragma warning( disable: 4127 ) // ÂüÁ¶µÇÁö ¾ÊÀº Çü½Ä ¸Å°³ º¯¼öÀÔ´Ï´Ù. #pragma warning( disable: 4100 ) // Windows Çì´õ ÆÄÀÏ: #include // CÀÇ ·±Å¸ÀÓ Çì´õ ÆÄÀÏÀÔ´Ï´Ù. #include #include #include #include #include #include #pragma warning (push, 3) #include "NiPoint2.h" #include "NiTransform.h" #include "NiTQueue.h" #pragma warning (pop) //#define STRSAFE_LIB //#include #undef assert #define assert(exp) {if(!(exp)) __asm{int 0x03}} /// STL #include "Pool.h" #include "BasicString.h" #include "Algorithm.h" #include "Allocator.h" #include "PriorityQueue.h" #include "Array.h" #include "DefragmentArray.h" #include "List.h" #include "HashMap.h" #include "HashSet.h" #include "PointerArray.h" #include "PointerList.h" #include "PointerHashMap.h" #include "PointerHashSet.h" /// ÆÄÀÏ #include "Console.h" #include "File.h" #include "FileLoader.h" #include "FileSaver.h" #include "GameFile.h" #include "Parser.h" #include "Lexer.h" /// ÅäÅ« #include "Tokenizer.h" #include "CommonNetworkMsgStruct.h" #include "RangeCheck.h" const int SECOND = 1000; const int MINUTE = 60 * SECOND; const int HOUR = 60 * MINUTE; const int DAY = 24 * HOUR; #define S_PI (3.14159265358979323846f) #define S_ToRadian( degree ) ((degree) * (S_PI / 180.0f)) /// defines #define SAFE_DELETE(x) if(x) { delete x; x = NULL; } #define SAFE_DELETE_ARRAY(x) if(x) { delete[] x; x = NULL; } #define SAFE_RELEASE(x) if(x) { x->Release(); x = NULL; } #define SAFE_EXIT_DELETE(x) if(x) { x->Exit(); delete x; x = NULL; } int ConvertToAscii( const wchar_t* uniStr, char* str, unsigned int bufferSize ); int ConvertToUnicode( const char* str, wchar_t* uniStr, unsigned int buffersize );