Possible Duplicate:
C++ std::string conversion problem on Windows
How to convert std::string to LPCSTR?
I want to rename a window ( WM_SETTEXT ) to something else. In have a std::string that contains the new window name. I need to convert the std::string to "LPCTSTR", this is becouse SendMessage needs the name in "LPCTSTR".
I can't get this to work, Could some one help me to convert a string to a LPCTSTR?