Error C2233 - Arrays of objects containing zero-sized arrays are illegal.

Tech-Archive recommends: Fix windows errors by optimizing your registry



I can compile the following (and it works as intended) with OpenWatcom, but
VC++ 2005 won't compile (error C2233).

// Using C99 Flexible Arrays

typedef struct _sTestList

{

UINT ID;

const TCHAR Text[];

} sTestList, *psTestList;



// test list of items

sTestList TestList[]={

1, _T("Test 1"),

2, _T("Test Item 2"),

3, _T("Test 3"),

4, _T("Test 4"),

5, _T("Test 5"),

6, _T("Test6"),

7, _T("Test 7"),

8, _T("Test 8"),

9, _T("Test 9"),

10, _T("") };




.



Relevant Pages