I have an edit box created, how do I add text to it? I want to use strings (from strings.h).
I have an edit box created, how do I add text to it? I want to use strings (from strings.h).
Send it the WM_SETTEXT message.
gg
What should I put for wParam?
and.. I go this error trying to use a string as lParam:
error C2440: 'type cast' : cannot convert from 'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'long'
wParam is not used (like the help says). Put 0 or whatever you want.
The string class does not come from strings.h, it comes from <string> and you want to use the "c_str()" method to get a pointer to a C string.
gg
error C2065: 'c_str' : undeclared identifier
I probably did it wrong :/. Can you give me an example of using it please?