Wednesday, May 30, 2012

a useful reminder for converting wide strings to narrow (ATL)

LPCSTR pszNarrow = NULL;
USES_CONVERSION;

pszNarrow = W2CA(pszWide);