Hello,
Looking for a solution to take something like:
const TCHAR StrArrayZ[]=_T("Item1\0Item2\0Item3\0");
and convert it to something like:
#include <align1.h>
struct {
union {
const TCHAR StrArrayZ[1];
struct {
const TCHAR I1[]=_T("Item1");
const TCHAR I2[]=_T("Item2");
const TCHAR I3[]=_T("Item3");
const TCHAR Z[]=_T("");
}s;
} u;
} StringOfItems;
#include <alignend.h>
So I could replace the original StrArrayZ with StrOfItems.u.StrArrayZ, but
could also deference each item directly via StrOfItems.u.s.I1, etc..
Is it possible to use the compiler to do it similar to above???
TIA!!