• Advertisement
Sign in to follow this  

LPCSTR conversion

This topic is 3578 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

How do you convert an integer to a constant string for use of D3D text?(in c++) ive tried std strings and I get error.. cannot convert parameter 2 from 'std::stringstream' to 'LPCSTR'

Share this post


Link to post
Share on other sites
Advertisement
If you got as far as a std::stringstream, then you can use .str() member function to get a std::string and the .c_str() member function of that to get a const char *.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement