int len = GetWindowTextLengthW(hwndEdit) + 1;
wchar_t text[len];
I get
Error 2 error C2466: cannot allocate an array of constant size 0
Error 3 error C2133: 'text' : unknown size
Error 1 error C2057: expected constant expression
I don't understand why it wont compile, because GetWindowTextLengthW(hwndEdit) + 1 > 0
Isn't it true that null+1 = 1?