I thought first i convert that string to float no:and format the float no: and append with A.But i am not getting the format 2.3 to 0002.3._wtof function failure is the problem.What may be the reason of _wtof failure.
What is TCHAR? What is _wtof? Parameter type, return type? Does it provide any error handling?
If you do have a cstring, then you can measure its length and find the position of the dot. It is then possible to construct a new cstring with appropriate number of "0" characters in front. Converting string->float->string is not so nice due to the nature of floats.