【发布时间】:2011-04-15 05:08:25
【问题描述】:
我需要在 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设备吗?
【问题讨论】:
标签: visual-c++ mfc windows-mobile windows-ce windows-mobile-6.5