Re: Date Time Picker Problem
CTime is defined only between the first strike of new year of 1970 and the time bomb explodes on Jan. 18, 2038. I would avoid using CTime in my program.
When your control is initialized to Dec. 31, 1969, any slight change to the month or day yields a date value that's beyond the valid definition range of CTime. I would be surprised if that didn't cause problem.
Don't use MFC's DDX. Do your own. And use COleDateTime instead.
I hate fat programs as much as I hate being fat myself. I am lean and mean and so is my program.
Re: Date Time Picker Problem
Anthony,
Thanks! You were right. Any date in 1969 is invalid & the assert failure is triggered. Will experiment with the COleDateTime class. I haven't used any Ole controls. Thanks again for your quick reply.
Trader
Re: Date Time Picker Problem
One more question. When you say, "Don't use MFC's DDX. Do your own." . . . do you still call the applicable DDX??? function from within the DoDateExchange function wrote by the AppWizard? Do I just call it outside of the /{{AFX_DATA_MAP labels? Thanks again.