Philippe Rolland
May 31st, 1999, 11:32 AM
Hello,
In Visual C++/MFC, I am looking for an elegant way to have the second as double in a COleDateTime and COleDateTimeSpan class.
I need to compute time with more precision than day, hour, minute, second (in integer). For that I need to have the fraction of a second (up to 4 digit after the comma).
So far I have created a derived class called COleDateTimeX and COleDateTimeSpanX with a new member: "double m_Dec ;" but I have to re-write several function (Format, SetDateTime....). I am not a guru with Object Oriented approach, and was wondering if there would be an easier and more elegant way to deal with this problem.
Thanks for your help,
Philippe.
In Visual C++/MFC, I am looking for an elegant way to have the second as double in a COleDateTime and COleDateTimeSpan class.
I need to compute time with more precision than day, hour, minute, second (in integer). For that I need to have the fraction of a second (up to 4 digit after the comma).
So far I have created a derived class called COleDateTimeX and COleDateTimeSpanX with a new member: "double m_Dec ;" but I have to re-write several function (Format, SetDateTime....). I am not a guru with Object Oriented approach, and was wondering if there would be an easier and more elegant way to deal with this problem.
Thanks for your help,
Philippe.