We are using the CString class throughout most of our code. However sometimes we need to convert to a char *. at the moment we have been doing this using variable.GetBuffer(
try the documentation at http://msdn.microsoft.com/en-us/library/awkwbzyc.aspx for help on that.