
Work-around for char StringName[k][Max] related error in MSVC++ ver 6.0
Hi ...
I'm working in Visual C++ ver 6.0. Strangely, the complier generates
the following errors in response to the declaration:
char StringName[k][Max];
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2057: expected constant expression
error C2466: cannot allocate an array of constant size 0
error C2087: '<Unknown>' : missing subscript
error C2133: 'WaveFileList' : unknown size
Microsoft acknowledges that this is indeed a bug (BUG: Cannot Cast
Double to int for Use in an Array Declarator)in its compiler and
suggests a work-around that I cannot fit in this situation.
Any ideas?
Thanks
- Olumide