hi everyone, i'm new to win32 programming , especially for smart devices.
i'm developping an application and i need to show some float variables in edit boxes. so first i need to convert them to strings.
here is the code i use:
LPTSTR buff = new TCHAR[256+1];
sprintf((char*)buff,"%g", x_coord);
SetDlgItemText(hDlg, IDC_XCOORD, buff);
delete[] buff;
someone told me to use _stprintfl_s instead of sprintf but it seems that is not supported by evc++ 4 i tried to include several files that i read in msdn but with no luck..
so to be quick , with this code i get as output those strange squares instead of my float...
any idea
thanx a lot