Does any buddy help me to convert char* to std::wstring

I have got the answer

std::wstring ctow(const char* src)
    return std::wstring(src, src + strlen(src));

Thanks every one :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.