經安全檢測,此網站為安全網站,請放心前往原始網址!

Convert std::string to LPCWSTR (best way in c++)

Instead of using a std::string, use a std::wstring (also called a std::basic_string). I get the feeling you want to pass a std::string type to a Win32 API. Those APIs don't take LPCWSTRs (or even LPCSTRs), they take a LPCTSTR (long pointer to a tchar ...

social.msdn.microsoft.com

網址安全性掃描由 google 提供