Welcome to the forum. Now, you can use HTML in your posts too.
Hi friend, Try this, CString str = "Hi friend"; char str2[100]; strcpy(str2,(LPCTSTR)str); also include bye