CString help
- From: "jp2code" <poojo.com/mail>
- Date: Thu, 21 Jun 2007 14:17:04 -0500
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
.
- Follow-Ups:
- Re: CString help
- From: Joseph M . Newcomer
- Re: CString help
- From: David Webber
- Re: CString help
- From: MrAsm
- Re: CString help
- From: Ajay Kalra
- Re: CString help
- Prev by Date: Re: Debug Assertation Failed
- Next by Date: Re: CString help
- Previous by thread: Debug Assertation Failed
- Next by thread: Re: CString help
- Index(es):