Hi, a simple question.
I'm try to use the printf function with CStrings in a Win32 Console application. I've already included MFC support. Since the printf function accepts const char * variables, I'm getting an error when I try something like.
CString s = "this is a test";
printf(s);
Is there another function or a conversion that will left me print CString variables to the console?
Thanks in advance for your help.
I'm try to use the printf function with CStrings in a Win32 Console application. I've already included MFC support. Since the printf function accepts const char * variables, I'm getting an error when I try something like.
CString s = "this is a test";
printf(s);
Is there another function or a conversion that will left me print CString variables to the console?
Thanks in advance for your help.