I am trying to drwa some text using GDI on c++
It happens that I have a class that has a method to return the status and I want to draw it
The status is a std::string!
So here is what I have so far:
RECT status = RECT();
status.left = rcClient.right-200;
status.left = rcClient.left;
status.top = rcClient.top;
status.bottom = rcClient.bottom;
DrawTextW(hdc, game->GetStatus().c_str(), 1, status, 0);
The errors I have are:
error C2664: 'FormatMessageW' : cannot convert parameter 5 from 'LPWSTR' to 'char *'687 damas error C2664: 'FormatMessageW' : cannot convert parameter 5 from 'wchar_t *' to 'char *'damas error C2664: 'DrawTextW' : cannot convert parameter 2 from 'const char *' to 'LPCWSTR'
I can't find a way to solve this... can someone help me out?