Click here to Skip to main content
15,886,065 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: delete one character in file Pin
David Crow10-Feb-05 9:06
David Crow10-Feb-05 9:06 
GeneralRe: delete one character in file Pin
Maximilien10-Feb-05 9:07
Maximilien10-Feb-05 9:07 
GeneralRe: delete one character in file Pin
Neville Franks10-Feb-05 9:27
Neville Franks10-Feb-05 9:27 
GeneralPrinting a Windows Form in Visual C++ .net 2003 Pin
Kevin9010-Feb-05 7:14
Kevin9010-Feb-05 7:14 
Generalsearching concrete text in *.txt file Pin
bilas10-Feb-05 6:39
bilas10-Feb-05 6:39 
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 

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.