unsigned char to const char *
I have this code:
Code:
int systeminfo()
{
SYSTEM_POWER_STATUS sps;
HDC hdc;
GetSystemPowerStatus(&sps);
hdc = GetDC(hwnd);
TextOut(hdc,5,5,sps.ACLineStatus,3);
ReleaseDC(hwnd,hdc);
return 0;
}
error C2664: 'TextOutA' : cannot convert parameter 4 from 'unsigned char' to 'const char *'
Conversion from integral type to pointer type requires reinterpret_cast, C-style cast or function-style cast
Error executing cl.exe.
how do i format this to work? Thanks
and i get the error: