Member 14594285 wrote:
COleDateTime aa;
aa.SetDate(01, 02, 2021);
You should always check return values, an read the docu.
If you look at the docu you see this:
int SetDate( int nYear, int nMonth, int nDay) throw();
Obviously, it has to go grossly wrong.
And if you had at least evaluated the return value
here of course the error is also visible.
int ret = aa.SetDate(01, 02, 2021);
if(ret != 0) ...