what is different...?? (TBuf<64>...)

Login to reply to this topic.
Thu, 2004-11-25 12:46
Joined: 2004-11-20
Forum posts: 67
hello,
what is different??

When I have a local TBuf<64>  in my function, I can use all of it's methods like Append...
But when I define it in my header file(as a member variable)
I cann't use Zero or Append method:

in my header file I have defined it:

   TBuf<64> Name;

and in one of the functions I wrote:

   Name.Zero();

but I get this error:

error C2662: 'Zero' : cannot convert 'this' pointer from 'const class TBuf<64>' to 'class TDes16 &'

Huh
I don't undrestand...

Thu, 2004-11-25 13:19
Joined: 2004-07-01
Forum posts: 26
what is different...?? (TBuf<64>...)
Maybe the method you called Name.Zero() from have a 'const' suffix?

mikolajz

Thu, 2004-11-25 18:32
Joined: 2004-07-10
Forum posts: 364
what is different...?? (TBuf<64>...)
Hello
Why don't you post some more of your code. The warning mentions the this pointer so post all of, or the relevant parts of the class
  • Login to reply to this topic.