Hi
Do you know about a way how to work with (double) types in text controls...
iTotal is type (double), imagine it carries a value of 3.14159.
Using this code returns me "1413551940" even if i tryCode:wsprintf(chTotal, "%d", (double)iTotal); SetDlgItemText(hwndDlg, nControl, chTotal);
the same error ocures...Code:wsprintf(chTotal, "%d", (float)iTotal); SetDlgItemText(hwndDlg, nControl, chTotal);
Only works if I request (int) value but that is not with decimal place. I am quite confused why does the programme return this?
Can you plase help with that somehow? THX



LinkBack URL
About LinkBacks



