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