Thread: Database app - cannot edit fields

  1. #1
    Android geek@02's Avatar
    Join Date
    Mar 2004
    Location
    Kurunegala Colony, Sri Lanka, Sri Lanka
    Posts
    470

    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 01:16 AM.
    GameJolt: https://gamejolt.com/@KasunL
    Game Development Youtube:
    https://is.gd/XyhYoP
    Amateur IT Blog: http://everything-geeky.blogspot.com/



    (and, sorry for my amateur 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, 10:54 PM
  4. Access an edit in another app
    By bonkey in forum Windows Programming
    Replies: 0
    Last Post: 10-29-2002, 11:16 AM