displaying text
I have done extensive research on this topic and have done a lot of reading, I don't know what to do next.
The fix is .c_str() on the std::string you are passing in. DrawText wants a pointer to the first character of the string array. When documentation states that it wants a pointer to a text string and is defined as LPCSTR it means that it wants a pointer to the first element of the character array of a string. Std::string is a wrapper over a dynamically resizing character array, to get access to the raw memory you need to use the function "c_str()"
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement