// stdafx.h : ÀÚÁÖ »ç¿ëÇÏÁö¸¸ ÀÚÁÖ º¯°æµÇÁö´Â ¾Ê´Â // Ç¥ÁØ ½Ã½ºÅÛ Æ÷ÇÔ ÆÄÀÏ ¹× ÇÁ·ÎÁ§Æ® °ü·Ã Æ÷ÇÔ ÆÄÀÏÀÌ // µé¾î ÀÖ´Â Æ÷ÇÔ ÆÄÀÏÀÔ´Ï´Ù. #pragma once #ifndef _SECURE_ATL #define _SECURE_ATL 1 #endif #ifndef VC_EXTRALEAN #define VC_EXTRALEAN // °ÅÀÇ »ç¿ëµÇÁö ¾Ê´Â ³»¿ëÀº Windows Çì´õ¿¡¼­ Á¦¿ÜÇÕ´Ï´Ù. #endif // ¾Æ·¡ ÁöÁ¤µÈ Ç÷§Æû¿¡ ¿ì¼±ÇÏ´Â Ç÷§ÆûÀ» ´ë»óÀ¸·Î ÇÏ´Â °æ¿ì ´ÙÀ½ Á¤ÀǸ¦ ¼öÁ¤ÇϽʽÿÀ. // ´Ù¸¥ Ç÷§Æû¿¡ »ç¿ëµÇ´Â ÇØ´ç °ªÀÇ ÃֽŠÁ¤º¸´Â MSDNÀ» ÂüÁ¶ÇϽʽÿÀ. #ifndef WINVER // Windows XP À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define WINVER 0x0501 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINNT // Windows XP À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINNT 0x0501 // ´Ù¸¥ ¹öÀüÀÇ Windows¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_WINDOWS // Windows 98 À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_WINDOWS 0x0410 // Windows Me ÀÌ»ó¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #ifndef _WIN32_IE // IE 6.0 À̻󿡼­¸¸ ±â´ÉÀ» »ç¿ëÇÒ ¼ö ÀÖ½À´Ï´Ù. #define _WIN32_IE 0x0600 // ´Ù¸¥ ¹öÀüÀÇ IE¿¡ ¸Âµµ·Ï ÀûÇÕÇÑ °ªÀ¸·Î º¯°æÇØ ÁֽʽÿÀ. #endif #define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // ÀϺΠCString »ý¼ºÀÚ´Â ¸í½ÃÀûÀ¸·Î ¼±¾ðµË´Ï´Ù. // MFCÀÇ °øÅë ºÎºÐ°ú ¹«½Ã °¡´ÉÇÑ °æ°í ¸Þ½ÃÁö¿¡ ´ëÇÑ ¼û±â±â¸¦ ÇØÁ¦ÇÕ´Ï´Ù. #define _AFX_ALL_WARNINGS #include // MFC ÇÙ½É ¹× Ç¥ÁØ ±¸¼º ¿ä¼ÒÀÔ´Ï´Ù. #include // MFC È®ÀåÀÔ´Ï´Ù. #ifndef _AFX_NO_OLE_SUPPORT #include // Internet Explorer 4 °ø¿ë ÄÁÆ®·Ñ¿¡ ´ëÇÑ MFC Áö¿øÀÔ´Ï´Ù. #endif #ifndef _AFX_NO_AFXCMN_SUPPORT #include // Windows °ø¿ë ÄÁÆ®·Ñ¿¡ ´ëÇÑ MFC Áö¿øÀÔ´Ï´Ù. #endif // _AFX_NO_AFXCMN_SUPPORT #ifdef _UNICODE #if defined _M_IX86 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_IA64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"") #elif defined _M_X64 #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"") #else #pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"") #endif #endif #pragma warning(disable : 4996) // vs2005¿¡¼­ Ãß°¡µÊ. º¸¾È»óÀÇ ÀÌÀ¯·Î ´õ ÀÌ»ó »ç¿ëµÇÁö ¾Ê´Â MFC³ª ATL ÇÔ¼ö¸¦ »ç¿ëÇÏ´Â °æ¿ì¿¡µµ C4996ÀÌ ¹ß»ýÇÒ ¼ö ÀÖ½À´Ï´Ù enum ChatCmdType { NORMAL = 0, // ÇöÀç ij¸¯ÅÍ ÁÂÇ¥¸¦ °¡Áö°í ÆÇ´Ü. PARTY = 1, // ÆÄƼ äÆÃ FRIEND = 2, // Ä£±¸ äÆÃ (À̸§ char[16] * m_cNum - MAX 100°³) GUILD = 3, // ±æµå äÆÃ CLIENT_LOG = 5, STALL = 6, // ³ëÁ¡»ó äÆÃ (À̸§ char[16] * m_cNum - MAX 10°³) SHOUT = 7, // ¿ÜÄ¡±â ADMIN_NORMAL_CHAT = 8, // ¿î¿µÀÚ Åë»ó äÆÃ (Ack·Î¸¸ »ç¿ë) ADMIN_SHOUT = 9, // ¿î¿µÀÚ ¿ÜÄ¡±â (Ack·Î¸¸ »ç¿ë) WHISPER = 10, // ÀÌ ¹øÈ£´Â ¾²ÀÌÁö ¾Ê´Â´Ù.Whisper´Â º°µµÀÇ ÆÐŶÀ» »ç¿ëÇϱ⠶§¹®ÀÌ´Ù. ´Ü, ·Î±×½Ã¿¡ ¾²ÀδÙ. TRADE = 11, // ¿ÜÄ¡±â¿Í µ¿ÀÏ (»ö ±¸ºÐ¿ëÀ¸·Î ´Ù¸¥ Ä¿¸Çµå·Î ¸¸µë) CAMP_SHOP = 12, // ±æµå ¿ä»õ »óÁ¡ äÆÃ (À̸§ char[16] * m_cNum - MAX 10°³) NOTIFY_CHAR_INFO = 13, // ¿î¿µÀÚ ¸í·É hp FIND_PARTY = 14, // ÆÄƼ ã±â ENEMY_CHECK = 15, // Àû¾Æ±º ½Äº°. DICE = 16, // ÁÖ»çÀ§ äÆÃ (ÆÄƼäÆÃ°ú µ¿ÀÏ) GMREPORT = 17, // Áö¿¥ äÆÃ NOTICE = 255, PktChatMaxSize = 180 }; const char* GetMyINIString(const char* szSection, const char* szKey); const int GetChatType(const char* szType);