Replace Deprecated Flags and Macros (Compact 7)
3/12/2014
Several macros and flags are deprecated in Windows Embedded Compact 7.
NOMIPS16CODE
The image flag NOMIPS16CODE from Windows Embedded CE 6.0 is replaced by the NOIMPLICITIMPORT flag in Windows Embedded Compact 7. For information about this new flag, refer to Replace the NOMIPS16CODE Compiler Flag in Port Your Build from Windows Embedded Compact 6.
Dim (Dimension) Macros
The dim macro, #define dim(x) (sizeof(x)/sizeof(x[0])), has been deprecated. This code is still present to prevent build breaks, but it now generates warnings. Replace the macro with _countof.
The following similar macros are also deprecated and should be replaced with _countof:
- ARRAYSIZE
- ARRAY_SIZE
- ARRAYSIZEOF
- ARRSIZE
- SIZEOF_ARRAY
- ARRAY_LENGTH
- NUM_ELEMENTS
- NELEMS
- NUM
- NUMBER_OF_ARRAY
- TABLE_COUNT
- COUNTOF
ItemCount - dim
- DIMOF
- CCHSIZEOF