Pointer vs Tbuf

Login to reply to this topic.
Tue, 2008-09-02 07:59
Joined: 2008-03-11
Forum posts: 44

Hi All,
Please help me ,
I want to convert pointer to buffer and want to see the value;
code is as:

Vvoid CCallMonitor::SetListner(MMatsyaObserver* aOberver)
{

// TBuf<60>iBuf;
// iBuf.Copy(aOberver);
// CDump::LogDebug(iBuf);

}


Tue, 2008-09-02 08:09
Joined: 2003-12-05
Forum posts: 683
Re: Pointer vs Tbuf

So you want to see the address of the pointer? Or some data pointed to by the pointer? In the first case just AppendNum the pointer's address to the buf (do not use iBuf naming convention, btw, since this is not a member variable). In the second case just call some method of the observer class to get the data.

Tue, 2008-09-02 20:50
Joined: 2007-09-23
Forum posts: 159
Re: Pointer vs Tbuf

If you want to see the 4 byte address of the pointer do as above.

If you want to see some data which is contained within the class then how can this possibly be a sensible question given the amount of information you have supplied? You might as well ask how you can convert an elephant to a TBuf.

Tue, 2008-09-02 21:20
Joined: 2003-12-05
Forum posts: 683
Re: Pointer vs Tbuf

how you can convert an elephant to a TBuf.
Laughing out loud

Mon, 2008-09-08 02:55
Joined: 2008-08-08
Forum posts: 1
Re: Pointer vs Tbuf

If you want to get the data buy buf, you should use Hbuf not tbuf,because TBuf will be released when the function finishes.

  • Login to reply to this topic.