How can I convert std::string to LPCTSTR?

I have a std::string str, which may contain I18n characters in UTF-8 format.

How can i convert it to a LPCTSTR?


Do i have to using
1
2
3
4
5
#ifdef UNICODE 
//... 
#else
//...
#endif 

?



Is there a general way to do this?

Thanks.
Topic archived. No new replies allowed.