Converting CString ⇔ char *

Some FAQs in the newsgroups and forums are questions such as "how to convert CString to char *" and "how to convert char * to CString". In the Visual C++ documentation is the article Strings: CString Operations Relating to C-Style Strings that is very useful for such things. To find it in the Visual C++ documentation you can follow the following hierarchy:

Visual C++ Programmer's Guide
    Adding Program Functionality
        Details
            Strings Topics
                Strings in MFC
                    Strings: CString Operations Relating to C-Style Strings


See my Visual C++ Programmer Stuff page for more C++ stuff.