Convert CString to Currency

How can i convert CString to Currency.
It depends on the format and actual currency.
thanks for your valuable reply. the actual currency is in rupees.
i want to do a simple conversion.
for example:
CString Data = "12345";
Now if i have currency type variable, then how can i use CString variable.
i want to make CString Value to currency type.
How can i convert this.
Do you just want to make it a number, or do you want to reformat it as a string?
i just want to make it a number.
and how to use currency data type in mfc, can you give an example.
waiting for your valuable feedback....
Last edited on
1
2
CString Data = "12345";
double n = atof(Data);


You'll need to include stdlib.h
http://msdn.microsoft.com/en-GB/library/hc25t012%28v=vs.71%29.aspx
thank you for you kind assistance.
Topic archived. No new replies allowed.