Hi,
How can I display a CString value in a console?
Thanx
Printable View
Hi,
How can I display a CString value in a console?
Thanx
Use the standard output stream cout:
#include <afx.h>
#include "iostream.h"
int main()
{
CString foo("Hello world!");
cout << foo << endl;
cin.get();
return 0;
}
Dave