CString和string相互转换

    xiaoxiao2022-07-02  101

    一、string转CString

    string str = "hello world"; CString cstr(str.c_str());

    二、CString转string

    CString theCStr = L"Hello C++"; std::string STDStr(CW2A(theCStr.GetString()));

    (未完续)

    最新回复(0)