October 11th, 2012, 12:36 AM
wsprintf() Function how to read Double Variable
I have one problem with wsprintf Function
if I write this code :
Now My Problem is , If The Varibale I is double Not integer , How can I let wsprintf read the double variable
int I =500 ;int S ;
S= wsprintf(sBuffer,TEXT(" I value : %i "), I); // Here is the problem
Simply if I have I = 122.45566777776 as Example , how can I print by using wsprinf function.
I think I have to convert I number (122.45566777776) to WCHAR varaible then print directly
But this will be very long way if I have to convert each int variable to wchar variable.
Kindly advise , and provide code examples if possible.
Thanks & Regards
Click Here to Expand Forum to Full Width