Link to home
Start Free TrialLog in
Avatar of maddop
maddop

asked on

From CString to Float?

Is it possible to convert a CString to a Float to enable a division.

CTime dob(1980,1,2,3,4,5);
CTime now = CTime::GetCurrentTime();
CTimeSpan ts = now-dob;

//Need to convert the statement below

CString s = ts.Format( "Total days: %D);

//I need to divide the Total days by 365 can i do it?
ASKER CERTIFIED SOLUTION
Avatar of jkr
jkr
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of maddop
maddop

ASKER

Cheers... just the job