I have an application, with several functions, and one of these have to return a pointer on COleDateTime. I know the size of the "array" of COleDateTime dates, 2, but i meet a problem when i start debugging when i look in the debug window.
When i declare in the function a COleDateTime pointer i could use 2 way to do that.
Firstly, i just could write:
COleDateTime pDates[2]; and in the debug window i could see:
pDates
[0]->m_dt
->m_status
[1]->m_dt
->m_status
and in another way i could do it:
COleDateTime *pDates=new COleDateTime[2];
and in debug window i only see that:
pDates
->m_dt
->m_status
So, what is the good way if i want to return 2 dates different?
Thanks in advance
jayjay
When i declare in the function a COleDateTime pointer i could use 2 way to do that.
Firstly, i just could write:
COleDateTime pDates[2]; and in the debug window i could see:
pDates
[0]->m_dt
->m_status
[1]->m_dt
->m_status
and in another way i could do it:
COleDateTime *pDates=new COleDateTime[2];
and in debug window i only see that:
pDates
->m_dt
->m_status
So, what is the good way if i want to return 2 dates different?
Thanks in advance
jayjay