Does anyone know how could I manipulate times and time spans in an ATL COM AppWizard generated SERVICE (.EXE) project??
I use COleDateTime but it seems it is NOT recognized!!!
Times themselves are relatively easy, check out VariantToSystemTime and SystemTimeToVariant.
COM represents these as DATE type, which is "double". The whole part in n days since 30/12/1899, and the fractional part is an encoded time.
As a worst case, you could always copy+paste the MFC source for COLEDateTime.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.