CString help



I'm looking at a website on CString Management:

http://www.codeproject.com:80/string/cstringmgmt.asp

In the section entitled, "CString to char * II: Using GetBuffer," the author
stresses calling ReleaseBuffer after calling GetBuffer.

Is this always necessary?

I often use CString::GetBuffer when using CStrings in MessageBox dialogs
like so:

MessageBox(m_hWnd, cString.GetBuffer(0), lpTitle, MB_OK);

Should I be adding a ReleaseBuffer after a MessageBox call?

Should I be passing my string data to the MessageBox in another way?

Regards,
Joe


.