C++获取char值

直接获取内存地址,不需要定义指针类型的方法,(当然也就不需要释放了)
USES_CONVERSION;
    if (myFun1)
    {
        CString _input;
        m_edit_input.GetWindowTextW(_input);
        if (_input.GetLength() >0)
        {
            CString _output(myFun1(W2A(_input.GetBuffer())));
            m_edit_output.SetWindowTextW(_output);
        }
    }


posted @ 2018-09-28 15:08  amanda_zw  阅读(538)  评论(0编辑  收藏  举报