#pragma once #pragma warning(disable: 4786) #if defined(_DEBUG) && !defined(AC_FULL_DEBUG) #define _DEBUG_WAS_DEFINED #undef _DEBUG #pragma message ("Compiling MFC / STL / ATL header files in release mode.") #endif #pragma pack (push, 8) #pragma warning(disable: 4786 4996) #define VC_EXTRALEAN #include #include #ifndef _AFX_NO_OLE_SUPPORT #include #include #include #endif #include #ifndef _AFX_NO_AFXCMN_SUPPORT #include #endif #include #include #include #include #include "ktcad.h" #include "AecDbLandForm.h" #ifndef _ttof #define _ttof(pszVal) _tcstod((pszVal), NULL) #endif #define LAY_ROAD _T("LAY_ROAD") #define LAY_EW_DS _T("LAY_EW_DS") extern HINSTANCE _hdllInstance; #ifdef _DEBUG_WAS_DEFINED #define _DEBUG #undef _DEBUG_WAS_DEFINED #endif #define FILE_NAME_INI _T("spldcmd_uicache.dat") #define GET_CACHE(name,format, ...) UIHistory::readCache(FILE_NAME_INI, _T(#name), _T(#format), ##__VA_ARGS__) #define SET_CACHE(name,format, ...) UIHistory::writeCache(FILE_NAME_INI, _T(#name), _T(#format), ##__VA_ARGS__)