// ConsoleUpdater.h : PROJECT_NAME ÀÀ¿ë ÇÁ·Î±×·¥¿¡ ´ëÇÑ ÁÖ Çì´õ ÆÄÀÏÀÔ´Ï´Ù. // #pragma once #ifndef __AFXWIN_H__ #error PCH¿¡¼­ ÀÌ ÆÄÀÏÀ» Æ÷ÇÔÇϱâ Àü¿¡ 'stdafx.h'¸¦ Æ÷ÇÔÇϽʽÿÀ. #endif #include "resource.h" // ÁÖ ±âÈ£ int GetCurrentPath(char* pszPath); // CConsoleUpdaterApp: // ÀÌ Å¬·¡½ºÀÇ ±¸Çö¿¡ ´ëÇØ¼­´Â SP-Updater.cppÀ» ÂüÁ¶ÇϽʽÿÀ. // #ifdef _LGU #define DOWN_HOST "cs-update.x-cdn.com" // LG U+ #else // #define DOWN_HOST "cc-update.ktsh.co.kr" // KTICS #endif // #define DOWN_URL "http://"DOWN_HOST"/update" class CConsoleUpdaterApp : public CWinApp { public: CConsoleUpdaterApp(); protected: void GetUpdateFileList(CStringArray& saFile); BOOL CheckUpdate(CString &strLocal, CString &strRemote); public: CString m_sPath; CString m_sFile; BOOL CheckServer(); // ÀçÁ¤ÀÇ public: virtual BOOL InitInstance(); // ±¸Çö DECLARE_MESSAGE_MAP() }; extern CConsoleUpdaterApp theApp;