Ahhh, I've run into this problem a year or so before. Its not a problem. Its the fact that you can't dynamically declare the size of an array in this way. See thread116-107726
First situation: blah is a define which means it is a preprocesor directive and the preprocessor makes the replacements and at compile time your code will look like type var[20]
Second situation - it compiles as long as you keep the const. Else the compiler will require a const values. Arrays cannot be dinamically redimensioned if they are not on the heap(constructed with new).
Hope this helps,
s-)
Blessed is he who in the name of justice and good will, shepards the week through the valley of darkness...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.