#include "atlconv.h" CString cstr(L"abcd");char str[10]; strcpy(str, W2A(cstr.GetBuffer(cstr.GetLength())));