Problem with decalaration of TBuf8 ???
| Sun, 2005-08-07 14:25 | |
|
Hi All,
How can I declare: int i = 10; TBuf8 buf; now compiler give me error: error C2971: 'TBuf8' : template parameter 'S' : 'i' : a local variable cannot be used as a non-type argument when I make i global variable the error is following: error C2975: 'S' : invalid template argument for 'TBuf8', compile-time evaluatable constant expression expected thanks ! |
|






Forum posts: 94
TBuf8<10> buf;
But, if you are looking for some dynamic buffer, then you could explore using HBufC.
Vivek
Vivek Chopra
Forum posts: 192
try
TBuf8<i> buf;
Forum posts: 85
Wise People talk because they have something to say . Fools talk because thay have to say somthing.
Forum posts: 34
I use HBufC8 for dynamic buffer and this solve my problem
Thanks again