The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.



Suppresses compiler warnings for the use of deprecated ATL functions.



This code sample would cause a compiler warning if _ATL_SECURE_NO_WARNINGS were not defined.

#include <atlbase.h>
#include <atlsimpstr.h>
CSimpleString str(_T("xxxxxxxxxxxxxxxxxxx"), 20, pMgr);

TCHAR* pszSrc = NULL;
pszSrc = new TCHAR[12];
str.CopyChars(str.GetBuffer(), pszSrc, 12);