How do I convert from a std::string to an LPCSTR? A simple cast doesn't work, hopefully there's a way..
Printable View
How do I convert from a std::string to an LPCSTR? A simple cast doesn't work, hopefully there's a way..
std::string::c_str()
LPCSTR is just a typedef for const char*.
Interesting...what's TCHAR mean
Anyways, Its fixed. Thanks :)
Check the following website. It's got a lot of conversion that I find useful
http://www.flounder.com/cstring.htm#...20an%20integer
no offense but that website is pretty terrible. for a start it talks about the mfc CString class, instead of the std::string class.Quote:
Originally Posted by axr0284