Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update COleDateTime From File

Status
Not open for further replies.

kwijibo

Programmer
Jan 12, 2005
15
AU
I have an dialog based application that requires a date to be loaded and a COleDateTime control updated.

I am currently using this call to try to update the date:

Code:
m_date.SetDate(tempYear, tempMonth, tempDay);

It throws a Debug Assertion Failed error when doing the update, ie:

Code:
UpdateData(false);

Any ideas?
 
The place of the assertion usually gives a good hint on what is wrong.

/Per
[sub]
"It was a work of art, flawless, sublime. A triumph equaled only by its monumental failure."[/sub]
 
The error is occurring on this line:

Code:
ASSERT(timeNew.GetStatus() != COleDateTime::invalid);

I will hunt through my code perhaps i'm missing a typecast someplace.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top