// stdafx.h : 标准系统包含文件的包含文件, // 或是经常使用但不常更改的 // 特定于项目的包含文件 // #pragma once #include "targetver.h" #include #include #define WIN32_LEAN_AND_MEAN #include #include #include #include #include #include #include #include "public/ShopDefine.h" #include "./Uitl/Singleton.h" #include "./Uitl/log.h" #define VERSION_SUNSHOP "1.0.0.4" #ifndef _UNICODE #ifdef _DEBUG #pragma comment(lib,"ShopListManager_VS2008_MB_MT_d.lib") #else #pragma comment(lib,"ShopListManager_VS2008_MB_MT.lib") #endif #endif typedef unsigned char uint8_t; #define Strcmp _tcscmp #define SAFE_DELETE( p) { if ( p) { delete ( p); ( p) = NULL; } } #define SAFE_DELETE_ARRAY( p) { if ( p) { delete[] ( p); ( p) = NULL; } } #define SAFE_RELEASE( p) { if ( p) { ( p)->Release(); ( p) = NULL; } } #define SAFE_RELEASENDELETE(p) if (p) { (p)->Release(); delete (p); (p) = NULL; } struct KindOfItemType { typedef uint8_t value_type; enum { Default = 0, Divine, Etheria, EtheriaWithDivine, Shell, Counts, }; value_type value; };