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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER