我K,才发现ANSI和UNICODE之间的转换居然如此简单!!!

    技术2025-06-27  18

    void Ansi2Unicode(PCHAR Src, PWCHAR Dst) { wsprintfW(Dst, L"%S", Src); } void Unicode2Ansi(PWCHAR Src, PCHAR Dst) { wsprintfA(Dst, "%S", Src); }

     

    神马MultiByteToWideChar,神马WideCharToMultiByte,都是浮云~~~

    最新回复(0)