1. CString cs; cs = (LPCTSTR)(_bstr_t)(_variant_t)v; 2. VariantTimeToDosDateTime Converts the variant representation of a date and time to MS-DOS date and time values.INT VariantTimeToDosDateTime( double vtime, unsigned short * pwDosDate, unsigned short * pwDosTime );
CString cs;
cs = (LPCTSTR)(_bstr_t)(_variant_t)v;
2.
VariantTimeToDosDateTime
Converts the variant representation of a date and time to MS-DOS date and time values.INT VariantTimeToDosDateTime(
double vtime,
unsigned short * pwDosDate,
unsigned short * pwDosTime
);