unicode下CString转const char*的方法?解决方案

unicode下CString转const char*的方法?
我的vc工程在unicode环境下,请问如何将CString转为const char*呢?
多谢了!

------解决方案--------------------
wcstombs
------解决方案--------------------
CString str(_T("中国abc"));
int nLen = WideCharToMultiByte(CP_ACP, 0, str, -1, NULL, 0, NULL, NULL);
if(nLen > 0)
{
char* pBuf = new char[nLen];
WideCharToMultiByte(CP_ACP, 0, str, -1, pBuf, nLen, NULL, NULL);
delete []pBuf;
}