I need to convert a str value from a sstream to LPSTR but I have no clue how.
Hers my code:
The error says:Code:float currenttime = (float)GetTickCount(); float deltatime = currenttime - lasttime * 0.001f; outs << deltatime; LPSTR test = outs.str(); //Error line SetWindowText(eng.window, test);
error C2440: 'initializing' : cannot convert from 'std::basic_ostringstream<_Elem,_Traits,_Alloc>::_ Mystr' to 'LPSTR'