Database app - cannot edit fields

This is a discussion on Database app - cannot edit fields within the Windows Programming forums, part of the Platform Specific Boards category; Hi, i created this basic MFC ODBC database app and tried to override the default functionality of the "Next Record" ...

  1. #1
    Android
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    375

    Database app - cannot edit fields

    Hi, i created this basic MFC ODBC database app and tried to override the default functionality of the "Next Record" menu item, because i wanna display a bitmap when i goto a new record. Here's what that overriden function looks like:

    Code:
    void CDatabaseView::OnRecordNext() 
    {
       m_pSet->MoveNext();
       LoadAvatarFromDB();
    }
    But after doing that, i no longer can edit entries in the db dialog. For example, when i edit an entry in a edit box and goto the next record and come back to the edited, my edited entry is lost. Say, if i change "Enya" to "Yanni", when i come back i see "Enya", not "Yanni". How to fix this? Please help.

    Thx.
    Last edited by geek@02; 03-10-2006 at 12:16 AM.
    Some useless programs i've wrote : slprogrammersheaven
    Youtube: http://www.youtube.com/user/geekyzine
    My amature IT Blog: http://everything-geeky.blogspot.com/
    My Flash games: http://flashweed.blogspot.com/

    (and, sorry for my amature english)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Adding buttons, edit boxes, etc to the window
    By rainmanddw in forum Windows Programming
    Replies: 1
    Last Post: 04-10-2006, 03:07 PM
  2. Developing database management software
    By jdm in forum C++ Programming
    Replies: 4
    Last Post: 06-15-2004, 04:06 PM
  3. newbie to rich edit, cant get it to work
    By hanhao in forum Windows Programming
    Replies: 1
    Last Post: 03-24-2004, 09:54 PM
  4. Access an edit in another app
    By bonkey in forum Windows Programming
    Replies: 0
    Last Post: 10-29-2002, 10:16 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21