Click here to Skip to main content
15,915,019 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: searching concrete text in *.txt file Pin
Ravi Bhavnani10-Feb-05 6:42
professionalRavi Bhavnani10-Feb-05 6:42 
GeneralRe: searching concrete text in *.txt file Pin
bilas10-Feb-05 6:45
bilas10-Feb-05 6:45 
GeneralDateTimePicker error debugging Pin
José Luis Sogorb10-Feb-05 6:23
José Luis Sogorb10-Feb-05 6:23 
Hi:
I have this code:
Into DoDataExchange
DDX_Control(pDX, IDC_DATETIMEPICKER, m_date);
Into own function:
void CDialogSd::OnOK()
{
CDialog::OnOK();
CTime time;
m_date.GetTime(time);
day.Format("%d",time.GetDay());
month.Format("%d",time.GetMonth());
year.Format("%d",time.GetYear());

}
It works fine when compiling in Release Mode, but find an exception when running in Debug Mode and it breaks at:
_AFX_INLINE int CTime::GetDay() const
{ return GetLocalTm(NULL)->tm_mday; }

Looking for the 'time' value it appears as 1108057231 (%ld value)in Release and
-365867584 when debugging.
What could be the problem?
Thanks

GeneralRe: DateTimePicker error debugging Pin
Steve Mayfield10-Feb-05 7:08
Steve Mayfield10-Feb-05 7:08 
GeneralRe: DateTimePicker error debugging Pin
José Luis Sogorb10-Feb-05 7:12
José Luis Sogorb10-Feb-05 7:12 
GeneralRe: DateTimePicker error debugging Pin
Steve Mayfield10-Feb-05 7:39
Steve Mayfield10-Feb-05 7:39 
GeneralRe: DateTimePicker error debugging Pin
José Luis Sogorb10-Feb-05 22:18
José Luis Sogorb10-Feb-05 22:18 
GeneralRe: DateTimePicker error debugging Pin
Steve Mayfield12-Feb-05 11:26
Steve Mayfield12-Feb-05 11:26 
GeneralRe: DateTimePicker error debugging Pin
José Luis Sogorb14-Feb-05 4:29
José Luis Sogorb14-Feb-05 4:29 
GeneralRe: DateTimePicker error debugging Pin
Steve Mayfield17-Feb-05 9:53
Steve Mayfield17-Feb-05 9:53 
GeneralRe: DateTimePicker error debugging Pin
José Luis Sogorb17-Feb-05 21:04
José Luis Sogorb17-Feb-05 21:04 
GeneralRe: DateTimePicker error debugging Pin
José Luis Sogorb17-Feb-05 22:47
José Luis Sogorb17-Feb-05 22:47 
GeneralRe: DateTimePicker error debugging Pin
Steve Mayfield18-Feb-05 10:18
Steve Mayfield18-Feb-05 10:18 
GeneralAccess another dialogs controls Pin
Tombo10-Feb-05 5:31
Tombo10-Feb-05 5:31 
GeneralRe: Access another dialogs controls Pin
rocky_pulley10-Feb-05 5:47
rocky_pulley10-Feb-05 5:47 
GeneralRe: Access another dialogs controls Pin
Tombo10-Feb-05 11:41
Tombo10-Feb-05 11:41 
GeneralDialog's menu gray on startup Pin
rrrado10-Feb-05 4:58
rrrado10-Feb-05 4:58 
GeneralRe: Dialog's menu gray on startup Pin
JKallen11-Feb-05 11:41
JKallen11-Feb-05 11:41 
GeneralCListCtrl Button Pin
rlepine10-Feb-05 4:11
rlepine10-Feb-05 4:11 
GeneralRe: CListCtrl Button Pin
rocky_pulley10-Feb-05 5:04
rocky_pulley10-Feb-05 5:04 
GeneralRe: CListCtrl Button Pin
rlepine10-Feb-05 5:20
rlepine10-Feb-05 5:20 
Generalmsxml 3.0 , used for xml creation , error description Pin
cj_rahul10-Feb-05 3:49
cj_rahul10-Feb-05 3:49 
GeneralRe: msxml 3.0 , used for xml creation , error description Pin
ThatsAlok10-Feb-05 18:54
ThatsAlok10-Feb-05 18:54 
QuestionHow To Get know if Directory Exists? Pin
Rassul Yunussov9-Feb-05 23:37
Rassul Yunussov9-Feb-05 23:37 
AnswerRe: How To Get know if Directory Exists? Pin
Chris Losinger10-Feb-05 3:52
professionalChris Losinger10-Feb-05 3:52 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.