I have one problem with wsprintf Function
if I write this code :
Code:
int I =500  ;int S ;
WCHAR sBuffer[10];
S= wsprintf(sBuffer,TEXT("  I value :  %i  "), I);   // Here is the problem
Now My Problem is , If The Varibale I is double Not integer , How can I let wsprintf read the double variable

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