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. SDI v/s dialog-based

SDI v/s dialog-based

Scheduled Pinned Locked Moved C / C++ / MFC
c++tutorialdatabasequestion
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.
  • N Offline
    N Offline
    namratab
    wrote on last edited by
    #1

    I am a novice in Visual C++ programming. I have to create an application which acts as the front end for accessing records in a database. Should I go in for an SDI application or a dialog based one? There should also be the facility that new pages/dialogs should open on clicking of command buttons like "save", "Login", etc and every such new page should have database acces for entering and deleting records. Is this possible using SDI application? What should be the base classes of the subsequent dialog boxes that I create? I tried inserting a new dialog by selecting IDD_FORMVIEW in the drop down list for insering new dialogs and having the base class as Crecordset. But i am not able to open this second page on clicking a command button in the first page. Can someone please give me a step by step procedure on how to accomplish this? Or should i go in for a dialog-based application? Again, what should the base classes be of subsequent dialogs? Thanks

    C D 2 Replies Last reply
    0
    • N namratab

      I am a novice in Visual C++ programming. I have to create an application which acts as the front end for accessing records in a database. Should I go in for an SDI application or a dialog based one? There should also be the facility that new pages/dialogs should open on clicking of command buttons like "save", "Login", etc and every such new page should have database acces for entering and deleting records. Is this possible using SDI application? What should be the base classes of the subsequent dialog boxes that I create? I tried inserting a new dialog by selecting IDD_FORMVIEW in the drop down list for insering new dialogs and having the base class as Crecordset. But i am not able to open this second page on clicking a command button in the first page. Can someone please give me a step by step procedure on how to accomplish this? Or should i go in for a dialog-based application? Again, what should the base classes be of subsequent dialogs? Thanks

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      That depends, do you want to use a dialog template ? Do you want doc/view ?

      Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

      N 1 Reply Last reply
      0
      • C Christian Graus

        That depends, do you want to use a dialog template ? Do you want doc/view ?

        Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert

        N Offline
        N Offline
        namratab
        wrote on last edited by
        #3

        I am really sorry, I am not too familiar with these concepts that you mentioned. Could you please clarify ? I want the user of the application to be able to enter data/view data/query data through a series of dialogs. On clicking "SAVE" for a particular dialog/form the next appropiriate dialog should be displayed. How do I go about this? Thank you

        1 Reply Last reply
        0
        • N namratab

          I am a novice in Visual C++ programming. I have to create an application which acts as the front end for accessing records in a database. Should I go in for an SDI application or a dialog based one? There should also be the facility that new pages/dialogs should open on clicking of command buttons like "save", "Login", etc and every such new page should have database acces for entering and deleting records. Is this possible using SDI application? What should be the base classes of the subsequent dialog boxes that I create? I tried inserting a new dialog by selecting IDD_FORMVIEW in the drop down list for insering new dialogs and having the base class as Crecordset. But i am not able to open this second page on clicking a command button in the first page. Can someone please give me a step by step procedure on how to accomplish this? Or should i go in for a dialog-based application? Again, what should the base classes be of subsequent dialogs? Thanks

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

          namratab wrote:

          Should I go in for an SDI application or a dialog based one?

          While you could make either one work, I would opt for an SDI application. See here for some ideas.


          "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

          "Judge not by the eye but by the heart." - Native American Proverb

          N 1 Reply Last reply
          0
          • D David Crow

            namratab wrote:

            Should I go in for an SDI application or a dialog based one?

            While you could make either one work, I would opt for an SDI application. See here for some ideas.


            "Approved Workmen Are Not Ashamed" - 2 Timothy 2:15

            "Judge not by the eye but by the heart." - Native American Proverb

            N Offline
            N Offline
            namratab
            wrote on last edited by
            #5

            Thank you for the suggestion. But, in the SDI, only the first main form has database access, as in, if I use Edit fields and look to assign variables to each, I automatically get a drop-down list of the table column names in the add-member variable dialog. Subsequent dialogs do not have this facility. How do I go about that? And what should be the base type of subsequent dialogs? Just CDialog? Thank you again, Sir

            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