-
October 11th, 2012, 12:36 AM
#1
wsprintf() Function how to read Double Variable
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|