CString prData; prData.Format("Example"); LPTSTR Conversion; Conversion = prData.GetBuffer(prData.GetLength()); AfxMessageBox(Conversion);