我需要在 WinCE 平台上执行一些文件操作。与模拟器相比,设备中的文件路径不同。所以我需要根据环境选择文件,如下所示。
#if defined(WINCE_EMULATOR) //This macro is just for illustration
#define path ".\Storage Card\\1.txt" //Emulator configuration
#else
#define path "\\My Documents\Storage Card\\1.txt" //Device configuration
#endif
是否有任何宏可以区分 WinCE 模拟器和 WinCE 设备?