How to convert std::string to LPCSTR?
Call c_str() to get a const char * (LPCSTR) from a std::string. It’s all in the name: LPSTR – (long) pointer to string – char * LPCSTR – (long) pointer to constant string – const char * LPWSTR – (long) pointer to Unicode (wide) string – wchar_t * LPCWSTR – (long) pointer to constant Unicode … Read more