Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Crash after making text box blank.

Crash after making text box blank.

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    ELY M
    wrote on last edited by
    #1

    http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini

    A D 2 Replies Last reply
    0
    • E ELY M

      http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini

      A Offline
      A Offline
      Ashman
      wrote on last edited by
      #2

      That screenshot doesn't really help. Paste the code for that field and anything to do with that field.

      E 1 Reply Last reply
      0
      • A Ashman

        That screenshot doesn't really help. Paste the code for that field and anything to do with that field.

        E Offline
        E Offline
        ELY M
        wrote on last edited by
        #3

        CMyDigClockDlg::CMyDigClockDlg(CWnd* pParent /*=NULL*/) : CDialog(CMyDigClockDlg::IDD, pParent) { //{{AFX_DATA_INIT(CMyDigClockDlg) m_name = _T(""); m_hour9 = _T(""); m_hour8 = _T(""); m_hour7 = _T(""); m_name2 = _T(""); m_name3 = _T(""); m_name4 = _T(""); m_name6 = _T(""); m_name5 = _T(""); m_hour = 0; m_minutes = 0; m_hour2 = 0; m_hour3 = 0; m_hour4 = 0; m_hour5 = 0; m_hour6 = 0; m_minutes2 = 0; m_minutes3 = 0; m_minutes4 = 0; m_minutes5 = 0; m_minutes6 = 0; m_ampm = _T(""); m_ampm2 = _T(""); m_ampm3 = _T(""); m_ampm4 = _T(""); m_ampm6 = _T(""); m_ampm5 = _T(""); m_notepad = _T(""); //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CMyDigClockDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMyDigClockDlg) DDX_Control(pDX, IDC_CLOCK, m_clock); DDX_Text(pDX, IDC_NAME, m_name); DDX_Text(pDX, IDC_NAME2, m_name2); DDX_Text(pDX, IDC_NAME3, m_name3); DDX_Text(pDX, IDC_NAME4, m_name4); DDX_Text(pDX, IDC_NAME6, m_name6); DDX_Text(pDX, IDC_NAME5, m_name5); DDX_Text(pDX, IDC_HOUR, m_hour); DDX_Text(pDX, IDC_HOUR2, m_hour2); DDX_Text(pDX, IDC_HOUR3, m_hour3); DDX_Text(pDX, IDC_HOUR4, m_hour4); DDX_Text(pDX, IDC_HOUR5, m_hour5); DDX_Text(pDX, IDC_HOUR6, m_hour6); DDX_Text(pDX, IDC_MINUTES, m_minutes); DDX_Text(pDX, IDC_MINUTES2, m_minutes2); DDX_Text(pDX, IDC_MINUTES3, m_minutes3); DDX_Text(pDX, IDC_MINUTES4, m_minutes4); DDX_Text(pDX, IDC_MINUTES5, m_minutes5); DDX_Text(pDX, IDC_MINUTES6, m_minutes6); DDX_CBString(pDX, IDC_AMPM, m_ampm); DDV_MaxChars(pDX, m_ampm, 2); DDX_CBString(pDX, IDC_AMPM2, m_ampm2); DDV_MaxChars(pDX, m_ampm2, 2); DDX_CBString(pDX, IDC_AMPM3, m_ampm3); DDV_MaxChars(pDX, m_ampm3, 2); DDX_CBString(pDX, IDC_AMPM4, m_ampm4); DDV_MaxChars(pDX, m_ampm4, 2); DDX_CBString(pDX, IDC_AMPM6, m_ampm6); DDV_MaxChars(pDX, m_ampm6, 2); DDX_CBString(pDX, IDC_AMPM5, m_ampm5); DDV_MaxChars(pDX, m_ampm5, 2); DDX_Text(pDX, IDC_NOTEPAD, m_notepad); //}}AFX_DATA_MAP } I have those variables in OnTimer. This is in my OnTimer function. if ((CurTime.wHour == m_hour) && (CurTime.wMinute == m_minutes) && (CurTime.wSecond == 00) && (setampm == m_ampm)) { CString msg; msg.Format("%s %d:%d %s",m_name, m_hour, m_minutes, m_ampm); addiconballoon(1,m_name,msg,m_name,10); startanimateicon(); } if ((CurTime.wHour

        A 1 Reply Last reply
        0
        • E ELY M

          CMyDigClockDlg::CMyDigClockDlg(CWnd* pParent /*=NULL*/) : CDialog(CMyDigClockDlg::IDD, pParent) { //{{AFX_DATA_INIT(CMyDigClockDlg) m_name = _T(""); m_hour9 = _T(""); m_hour8 = _T(""); m_hour7 = _T(""); m_name2 = _T(""); m_name3 = _T(""); m_name4 = _T(""); m_name6 = _T(""); m_name5 = _T(""); m_hour = 0; m_minutes = 0; m_hour2 = 0; m_hour3 = 0; m_hour4 = 0; m_hour5 = 0; m_hour6 = 0; m_minutes2 = 0; m_minutes3 = 0; m_minutes4 = 0; m_minutes5 = 0; m_minutes6 = 0; m_ampm = _T(""); m_ampm2 = _T(""); m_ampm3 = _T(""); m_ampm4 = _T(""); m_ampm6 = _T(""); m_ampm5 = _T(""); m_notepad = _T(""); //}}AFX_DATA_INIT // Note that LoadIcon does not require a subsequent DestroyIcon in Win32 m_hIcon = AfxGetApp()->LoadIcon(IDR_MAINFRAME); } void CMyDigClockDlg::DoDataExchange(CDataExchange* pDX) { CDialog::DoDataExchange(pDX); //{{AFX_DATA_MAP(CMyDigClockDlg) DDX_Control(pDX, IDC_CLOCK, m_clock); DDX_Text(pDX, IDC_NAME, m_name); DDX_Text(pDX, IDC_NAME2, m_name2); DDX_Text(pDX, IDC_NAME3, m_name3); DDX_Text(pDX, IDC_NAME4, m_name4); DDX_Text(pDX, IDC_NAME6, m_name6); DDX_Text(pDX, IDC_NAME5, m_name5); DDX_Text(pDX, IDC_HOUR, m_hour); DDX_Text(pDX, IDC_HOUR2, m_hour2); DDX_Text(pDX, IDC_HOUR3, m_hour3); DDX_Text(pDX, IDC_HOUR4, m_hour4); DDX_Text(pDX, IDC_HOUR5, m_hour5); DDX_Text(pDX, IDC_HOUR6, m_hour6); DDX_Text(pDX, IDC_MINUTES, m_minutes); DDX_Text(pDX, IDC_MINUTES2, m_minutes2); DDX_Text(pDX, IDC_MINUTES3, m_minutes3); DDX_Text(pDX, IDC_MINUTES4, m_minutes4); DDX_Text(pDX, IDC_MINUTES5, m_minutes5); DDX_Text(pDX, IDC_MINUTES6, m_minutes6); DDX_CBString(pDX, IDC_AMPM, m_ampm); DDV_MaxChars(pDX, m_ampm, 2); DDX_CBString(pDX, IDC_AMPM2, m_ampm2); DDV_MaxChars(pDX, m_ampm2, 2); DDX_CBString(pDX, IDC_AMPM3, m_ampm3); DDV_MaxChars(pDX, m_ampm3, 2); DDX_CBString(pDX, IDC_AMPM4, m_ampm4); DDV_MaxChars(pDX, m_ampm4, 2); DDX_CBString(pDX, IDC_AMPM6, m_ampm6); DDV_MaxChars(pDX, m_ampm6, 2); DDX_CBString(pDX, IDC_AMPM5, m_ampm5); DDV_MaxChars(pDX, m_ampm5, 2); DDX_Text(pDX, IDC_NOTEPAD, m_notepad); //}}AFX_DATA_MAP } I have those variables in OnTimer. This is in my OnTimer function. if ((CurTime.wHour == m_hour) && (CurTime.wMinute == m_minutes) && (CurTime.wSecond == 00) && (setampm == m_ampm)) { CString msg; msg.Format("%s %d:%d %s",m_name, m_hour, m_minutes, m_ampm); addiconballoon(1,m_name,msg,m_name,10); startanimateicon(); } if ((CurTime.wHour

          A Offline
          A Offline
          Ashman
          wrote on last edited by
          #4

          Send me your project. I can't see anything wrong with that. djneried@homemail.com.au But I have a vauge idea of what is happening Ashman I'm normally not a praying man, but if you're up there, please save me Superman.

          1 Reply Last reply
          0
          • E ELY M

            http://69.50.187.114/~area51/crash.jpg I been working on this bug for few days and cant find way. it is time reminder program. I do know some validation things and they are not working :( The int numbers have to be load from the .ini

            D Offline
            D Offline
            David Crow
            wrote on last edited by
            #5

            So have you looked at line 3102 of wincore.cpp? That should tell you exactly what is wrong.


            "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups