1 Sep 2005 03:56
could i use CString in this way
void func(CString& str)
{
str = L"Will this lead to memory leak?";
}
CString str;
func(str);
is there any memory leak problem?
i'm not sure because i rarely saw people use CString like this;
most function would look like this
func(LPCTSTR lpStr, int nMax)
{
.
}
------------------------ Yahoo! Groups Sponsor --------------------~-->
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/saFolB/TM
--------------------------------------------------------------------~->
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/wtl/
<*> To unsubscribe from this group, send an email to:
wtl-unsubscribe@...
(Continue reading)
RSS Feed